I\'m using directive to display html snippets.
And templateUrl inside the directive, to be able to include snippets as html file.
The directive does not wor
attrs param for templateUrl is not interpolated during directive execution. You may use the following way to achieve this
app.directive("myTemplate", function() {
return {
restrict: 'EA',
replace: false,
scope: { snippet: '@'},
template: ''
};
});
Demo: http://plnkr.co/edit/2ofO6m45Apmq7kbYWJBG?p=preview