angularjs - ngRepeat with ngInit - ngRepeat doesn't refresh rendered value

后端 未结 3 2017
误落风尘
误落风尘 2020-12-11 14:50

I have array which is displayed using ngRepeater but with this directive I\'m using ngInit directive which execute function which should return object to be displayed. Every

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 15:03

    I've found out that you can just replace ng-init with angular expression {{}} in a hidden block:

    
    
    
    • {{displayedQuestion=SetPreview(phone)}} {{displayedQuestion.name}}

      {{displayedQuestion.snippet}}

提交回复
热议问题