Alternative to using ng-init in 'view'?

后端 未结 2 1566
闹比i
闹比i 2021-02-09 13:14

I am trying to create a \'like\' function for my app. I want to be able to set the value of a dynamically generated number as the \'like count\'. The problem comes in using \'ng

2条回答
  •  庸人自扰
    2021-02-09 13:27

    If your feeds object/array is long, it's better to use ng-bind for performance reasons.

    
    

    rather than

    {{likeCount}}
    

提交回复
热议问题