Posts by Denali • 21 points
1 post
-
2
votes1
answer332
viewsQ: Angular.js Directive with dynamic templateURL
create.directive('renderInputs', [ function(){ return { restrict: 'E', scope: true, templateUrl: function(elem, attrs) { alert(attrs.type); return '../templates/inputs/type-' + attrs.type + '.html';…