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

AngularJS routing without the hash '#'

$
0
0

I'm learning AngularJS and there's one thing that really annoys me.

I use $routeProvider to declare routing rules for my application:

$routeProvider.when('/test', {  controller: TestCtrl,  templateUrl: 'views/test.html'}).otherwise({ redirectTo: '/test' });

but when I navigate to my app in browser I see app/#/test instead of app/test.

So my question is why AngularJS adds this hash # to urls? Is there any possibility to avoid it?


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles



Latest Images

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