Heim  >  Fragen und Antworten  >  Hauptteil

angular.js - angular1.* 怎么在字符串里使用controller里的变量和方法

指令里有一个方法,方法里的字符串变量需要使用controller里的方法,有什么办法可以让字符串变量可以访问controller的作用域?

阿神阿神2684 Tage vor515

Antworte allen(2)Ich werde antworten

  • 天蓬老师

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

    这个已经有解决方案了:
    stackoverflow

    Antwort
    0
  • 给我你的怀抱

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

    把你的pop改用$templateCache来载入模板

    Antwort
    0
  • StornierenAntwort