angularjs - ngModel that points to dynamic html -



angularjs - ngModel that points to dynamic html -

i have repeater setup looks this

<table class="table table-condensed"> <tr ng-repeat="m in resp.availabletemplates"> <td> <input type="checkbox" ng-model="m.selected" /> <span ng-bind-html="m.messagetext"></span> </td> </tr> </table>

where m.messagetext string looks

hello <input type='text' value=''/>!, <input type='text' value=''/>

the user see list of template phrases, check off desired phrases, fill in text areas, , submit sends email filled in phrases provided.

by using ng-bind-html, output looks should. when using ng-model, output doesn't display html. how can bind info renders proper html, allows me gather info provided user?

try this:

<span ng-bind-html="{{m.messagetext}}"></span>

angularjs angular-ngmodel ng-bind-html

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -