angularjs - Angular Expressions Missing in Dynamically Generated Template -
I was dynamically filtered into the final markup that ended with the guideline (using a function) and angular expressions Is on the screen I have made one.
I am dynamically generating the template because we were required to generate markup based on properties inside the element.
Basically when defining such an expression:
angular. Modules ('ui.directives', []). Instructions ('Uber', function () {return {restricted: 'e', template: function (element, ethers)) {console.log ('hello'); Return '& lt; Div & gt; lol: {{User}} & lt; / Div> ';}};}); And keep it in the body:
& lt; Div ng-app = "myApp" & gt; & Lt; ui-bar & gt; I should change iambar & lt; / ui-bar & gt; & Lt; / Div & gt; The resulting markup is:
& lt; div ng-app = "myApp" class = "ng-scope" & gt; & Lt; ui-bar & gt; & Lt; Div class = "ng-binding" & gt; LL: & lt; / Div & gt; & Lt; / ui-bar & gt; & Lt; / Div & gt; Expression has been stripped for some reason Has anyone experienced it?
I do not quite understand that you are a dynamically generated template.
The HTML will look like this.
& lt; Ui-bar new-value = "hello" & gt; Me & lt; / ui-bar & gt; The return statement will show something like this
return {restrict: 'e', template: " Lol: {{User}} & lt; / div & gt; ", link: function (scope, element, ethers) {scope.user = attrs.newValue; } // and link} // and return The above code works in your JSField.
If you can add more information, then we can give more examples.
Comments
Post a Comment