Perviously we seen angularjs route module to configure our routes of our project using $routeProvider with #/contentkey. now using html5Mode enabled routing we will develop with the help of $locationProvider.
$locationProvider will enable html5route feature as enable. as well remove #/ from anchor tag herf like above.
<base herf="/" />
save then browse with in same tab. works. when we try to open in different tab gives below error.
to avoid such error ---enable web.config routing configuration in web.config. then it works fine.
$locationProvider will enable html5route feature as enable. as well remove #/ from anchor tag herf like above.
<base herf="/" />
save then browse with in same tab. works. when we try to open in different tab gives below error.
to avoid such error ---enable web.config routing configuration in web.config. then it works fine.
No comments:
Post a Comment