Quantcast
Channel: AngularJS routing without the hash '#' - Stack Overflow
Viewing all articles
Browse latest Browse all 11

Answer by Gharibi for AngularJS routing without the hash '#'

$
0
0

You could also use the below code to redirect to the main page (home):

{ path: '', redirectTo: 'home', pathMatch: 'full'}

After specifying your redirect as above, you can redirect the other pages, for example:

{ path: 'add-new-registration', component: AddNewRegistrationComponent},{ path: 'view-registration', component: ViewRegistrationComponent},{ path: 'home', component: HomeComponent}

Viewing all articles
Browse latest Browse all 11

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>