currently I'm handling links this way:
<a ng-click="goToLink('/foo')">foo</a>
$scope.goToLink = function(url) {
$location.path(url)
}
because if I do
<a ng-href="/foo">foo</a>
the page is of course reloaded(and getting 404), because it should be something like:
<a ng-href="#/foo">foo</a>
Is there a directive or something to define links that are 'html5 mode agnostic', so that I don't have to put the hashtag in every link?
Something like
<a ng-smart-href="/foo">foo</a>.