Skip to content

Commit

Permalink
use hashlocationstrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelknoch committed Mar 31, 2016
1 parent a69ca69 commit f578782
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import {AppComponent} from './app.component';
import {provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {ROUTER_PROVIDERS} from 'angular2/router';
import {ROUTER_PROVIDERS, APP_BASE_HREF, LocationStrategy, HashLocationStrategy} from 'angular2/router';
import {HTTP_PROVIDERS} from 'angular2/http';


bootstrap(AppComponent, [
ROUTER_PROVIDERS, HTTP_PROVIDERS
ROUTER_PROVIDERS, HTTP_PROVIDERS, provide(LocationStrategy,
{useClass: HashLocationStrategy})
]);

0 comments on commit f578782

Please sign in to comment.