AngularJS watch DOM change

前端 未结 5 2045
生来不讨喜
生来不讨喜 2020-11-29 05:31

I have one auto-carousel directive which iterates through the linked element\'s children.

The children however are not yet loaded in th

5条回答
  •  -上瘾入骨i
    2020-11-29 06:34

    Although I don't think it is with angular's recommendations, you could use ng-init which fires upon the initialization of the element:

    • {{name}}
    • {{email}}

提交回复
热议问题