codetok / cdk-admin

Angular 6 admin panel using angular material & angular flex.
361 stars 256 forks source link

How to remove # from route Url #13

Closed jmj4you closed 6 years ago

jmj4you commented 6 years ago

I tried following code but it doesn't work. Please help me I am new in Angular

@NgModule({ imports: [RouterModule.forRoot(routes,{useHash: false})], exports: [RouterModule] }) export class LazyLoadModule { }

jmj4you commented 6 years ago

Now solved, I was added this code // {provide: LocationStrategy, useClass: HashLocationStrategy},