Skip to content

Commit

Permalink
[DEV] Update Angular location strategy to use HashLocationStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
dpopescu committed Oct 31, 2016
1 parent 34eeb6f commit 5b31e22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {NgModule} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {HttpModule} from '@angular/http';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
import {LocationStrategy, HashLocationStrategy} from '@angular/common';

import {AppComponent} from './app.component';
import {ExternalPageComponent} from './external-page/external-page.component';
Expand Down Expand Up @@ -40,7 +41,7 @@ import { SafePipePipe } from './safe-pipe.pipe';
}
])
],
providers: [],
providers: [{provide: LocationStrategy, useClass: HashLocationStrategy}],
bootstrap: [AppComponent]
})
export class AppModule {
Expand Down

0 comments on commit 5b31e22

Please sign in to comment.