Vote count: 0
I'm adding contents of an html file on my page. To act as a "preview" that needs to change as the user adds content. For the sake of argument,
I'm using $http.get() to grab the content and $sce.trustAsHtml() to insert the html on the page. The issue is isn't bound to the controller so it's not recognized.
I haven an input with ng-model="introText" and I'd like to update .
Note: my html file is much longer but the html provided is just an example.
asked 1 min ago
In AngularJS, can I add a block of HTML that also has angular template data?
Aucun commentaire:
Enregistrer un commentaire