angular.js - Use innerHTML={{value}} in angular's html for dynamic insertion
怪我咯2017-05-15 16:59:52
0
2
549
In angular's HTML, innerHTML={{value}} is used to insert dynamically, but when the page completely outputs the string {{value}}, it is not parsed and bound to the model
When the page is loaded, angular will look for the location of ng-APP and then take over its area. The monitoring of {{}} occurs at this time,,,, and you have added {{}} later, and you need to manually register and apply.
Go and study $parse for yourself, there are many cases on the Internet
When the page is loaded, angular will look for the location of ng-APP and then take over its area. The monitoring of {{}} occurs at this time,,,, and you have added {{}} later, and you need to manually register and apply.