AngularJS: how can I get $location.path to template

Viewed 65091

I need current path from url in template (content of $location.path). But not via controller, because I have a lot of controllers (and I do not want to duplicate declaration of $scope.currentUrl = $location.path;). Thanks for the advice.

2 Answers
Related