Execute script/function on each iteration of ng-repeat

后端 未结 4 2182
温柔的废话
温柔的废话 2021-01-15 14:25

I am using ng-repeat on an element like this:

{{aS
4条回答
  •  忘掉有多难
    2021-01-15 15:15

    You can use a custom directive or the directive ngInit and pass a function from the controller.

    This directive will execute once the tag is created by the ngRepeat.

     
    

提交回复
热议问题