I found few questions with the same topic, but none of them were matching to my criteria. Hence posting it back.
Otherwise condition in routing is messing up with many of our static url's.
$routeProvider.otherwise({redirectTo: "/404"});
Otherwise condition is set for 404 page.
We have used # For no url re-directing for some links,
Ex : <a href="#">Test</a>
So onlick of this, its redirecting to 404 page not found. But it should remain in the same page and state. How?
And currently working on bootstrap carousels and carousel arrows look like this:
<a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
Above two links instead of helping in sliding redirecting for 404 page. How to restrict this and so on if we want to preventDefault routing for any other links from external plugins?