Add # hash after domain in angular 4

Add # Symbol after domain name in angular 4

–app-routing.module.ts

@NgModule({
    imports: [
        RouterModule.forRoot(appRoutes, {useHash: true})
    ],
    exports: [RouterModule]
})

Leave a Reply

Your email address will not be published. Required fields are marked *