Binding HTML template to data in AngularJS -


i have simple html template following

<p>{{data.id}}</p> 

and can compile data object string, not want bind scope.

like

var data = {id:123};  var result = $compile(html)(data); 

thanks!

added plunker here.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -