I've used AngularJS to build my app. ng-view
is set up with routing via the routeProvider.
It all works fine but I'd like to know how I can get the current templateUrl?
$routeProvider.
when('/terms', {
templateUrl: '/pages/terms.html',
controller: AboutController
});
In this case /pages/terms.html
...
You're probably looking for $route.current.templateUrl
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With