I am currently specifying templateUrl relative to the current location of the window.
cvApp.directive('personalDetails', function () { return { restrict: 'A', templateUrl: '../../Scripts/app/templates/personalDetails.html' }; });
How can I make templateUrl relative to the root of the application? I am looking for something like this:
templateUrl: '~/Scripts/app/templates/personalDetails.html'
Can AngularJS accomplish this?
javascript angularjs angularjs-directive
Ufuk Hacıoğulları Jun 02 '13 at 20:31
source share