When attempting to include { useHash: true }
in RouterModule.forRoot
, I encountered the following error. How can I add additional arguments?
@NgModule({
imports: [RouterModule.forRoot(
appRoutes,
{ enableTracing: true }, // <-- for debugging purposes
{ useHash: true }
)],
exports: [RouterModule]
})
ERROR:-
ERROR in src/app/app-routing.module.ts(26,5): error TS2554: Expected 1-2 arguments, but got 3.