Kindly explain useHash: true
method in angular 2 route method.
My Questions:
what is the purpose we using it.
why the value is "true" why not "false" ?
if the value is false, what could be happen ?
RouterModule.forRoot([ ABOUT_ROUTE ], { useHash: true })
By default, angular uses HTML5
location-based routing, which may cause you problems in some environments. In the shake of simplicity, we usually prefer hash-based routing which regularly works in every environment. You can have a look at this post for angular 2 routing
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With