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
Why not do:
template : ''
then:
$scope.getActualTemplateContent= function() { return '../assets/common/headerMenu/' + $scope.user_role + '.html'; };