Skip to content

Commit

Permalink
config route
Browse files Browse the repository at this point in the history
  • Loading branch information
thodn committed May 16, 2019
1 parent ccce6cd commit 6a785ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { FindRouteComponent } from './find-route';
import { AutoCompleteModule } from 'primeng/primeng';

import { HeaderComponent } from './_components/header/header.component';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';

import '../assets/styles';

Expand Down Expand Up @@ -44,6 +45,10 @@ import '../assets/styles';
useClass: ErrorInterceptor,
multi: true,
},
{
provide: LocationStrategy,
useClass: HashLocationStrategy,
},
LocalUser,
],
bootstrap: [AppComponent]
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ const appRoutes: Routes = [
},
];

export const routing = RouterModule.forRoot(appRoutes);
export const routing = RouterModule.forRoot(appRoutes, { useHash: true });

0 comments on commit 6a785ed

Please sign in to comment.