search

Home  >  Q&A  >  body text

angular.js - Use innerHTML={{value}} in angular's html for dynamic insertion

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

怪我咯怪我咯2829 days ago563

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-05-15 17:01:52

    Go and study $parse for yourself, there are many cases on the Internet

    reply
    0
  • 高洛峰

    高洛峰2017-05-15 17:01:52

    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.

    reply
    0
  • Cancelreply