AngularJS watch DOM change

前端 未结 5 2055
生来不讨喜
生来不讨喜 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条回答
  •  感情败类
    2020-11-29 06:35

    I created a directive module for this angular-dom-events

    In your case you could

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

    Currently only supports dom-on-create and dom-on-destroy, but has better performance then the accepted answer because it will only fire once for each dom event, rather than repeatedly check the $watch callback.

提交回复
热议问题