search

Home  >  Q&A  >  body text

angular.js - angular1.* How to use variables and methods in controller in strings

There is a method in the instruction. The string variable in the method needs to use the method in the controller. Is there any way to make the string variable access the scope of the controller?

阿神阿神2826 days ago603

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-15 17:15:28

    This already has a solution:
    stackoverflow

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-15 17:15:28

    Change your pop to use $templateCache to load templates

    reply
    0
  • Cancelreply