How to make lodash work with Angular JS?

后端 未结 4 1110
轻奢々
轻奢々 2020-11-28 21:02

I\'m trying to use lodash use it at ng-repeat directives, in this way:

4条回答
  •  我在风中等你
    2020-11-28 21:25

    I am not sure what version of Angular you are using. Looks like you should have just used the 'Controller as' syntax when you use 'this' to access variables in the dom.

    Here is the solution with this and not using scope. http://plnkr.co/edit/9IybWRrBhlgQAOdAc6fs?p=info

     
          
    Hello {{n}}

提交回复
热议问题