I\'m creating a directive with template URL. I want to set the template URL dynamically based on user_role. Any idea?
Heres my directive code:
RatingRX.d
If not put it in the markup.
angular.module("directives") .directive("headermenu", function() { return { restrict: "EA", scope: true, templateUrl: function (element, attr) { return attr.template; }, link: function(scope, iElement, iAttrs, controller) { .... } }; });