refactor(router): take advantage of the new way of configuring modules
This commit is contained in:
@ -29,8 +29,8 @@ export const ROUTES = [
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [WorkerAppModule, RouterModule],
|
||||
providers: [provideRoutes(ROUTES), WORKER_APP_LOCATION_PROVIDERS, {provide: LocationStrategy, useClass: HashLocationStrategy}],
|
||||
imports: [WorkerAppModule, RouterModule.forRoot(ROUTES, {useHash: true})],
|
||||
providers: [WORKER_APP_LOCATION_PROVIDERS],
|
||||
entryComponents: [App],
|
||||
declarations: [App, Start, Contact, About]
|
||||
})
|
||||
|
Reference in New Issue
Block a user