Gagri Global IT services is having a team of executives who have good experience in developing applications on various platforms like SharePoint 2013/2010, Silverlight, net Framework 4.5 and Mobile tools.
In Angular, the "#" symbol is used by default in the URLs for routing. This is known as the "hash-based routing" strategy. To remove the "#" symbol, you can use the "HTML5 pushState" strategy instead.
To configure your Angular app to use the HTML5 pushState strategy, you'll need to update your app's routing module. Here's an example of how to do this:
1. In your app's src/app/app-routing.module.ts file,
import the RouterModule and ExtraOptions modules from @angular/router.
import { RouterModule, ExtraOptions } from '@angular/router';
2. In the RouterModule.forRoot() method, set the useHash property to false and configure the baseHref to your web server context path.
const routerOptions: ExtraOptions = {
useHash: false,
//baseHref: '/',
};
3. Add RouterModule.forRoot(routes, routerOptions) in imports array and remove RouterModule.forRoot(routes)
imports: [RouterModule.forRoot(routes, routerOptions)],
4. in your index.html add
All design and content Copyright � 2012-2018 Gagri Global IT Services Pvt.Ltd. All rights reserved