Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove # from route Url #13

Closed
jmj4you opened this issue Aug 14, 2018 · 1 comment
Closed

How to remove # from route Url #13

jmj4you opened this issue Aug 14, 2018 · 1 comment

Comments

@jmj4you
Copy link

jmj4you commented Aug 14, 2018

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
Copy link
Author

jmj4you commented Aug 14, 2018

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

@jmj4you jmj4you closed this as completed Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant