I have a "template" attribute directed to what one would assume and use it as a template later on. Although the attribute value has an angular expression, as soon as the instruction is used, it is evaluated. Is it possible to disable expression evaluation for a feature?
Example ():
& lt; My-directive template-attribute = "My name is: {{name}}" & gt; & Lt; / My-directive & gt;
. Restrict: 'E', Controller: Function ($ Range, $ Element, $ Eater) {$ scope.name = 'filip'; $ attrs $ {'TemplateAttribute', function (value) {$ scope.templateAttribute = value;});}, Template: '& lt; div & gt; with template expression: & lt; strong & gt; {{templateAttribute} } ;}}});
I can imagine using some sort of escape:
& lt; My-directive template-attribute = "My name is: \ {\ {name}}" & gt; & Lt; / My-directive & gt;
Comments
Post a Comment