I had a problem with AngularJS disabling the directive when ng-repeat completed the update. I have three named arrays that switch over three links, allowing me to display the selected array using ng-repeat. I would like to disable some code when it is finished, as I plan to set some element attributes for using D3.
I tried to check the scope. $ last is in my directive, but this is not called at the end of every ng-repeat process. If some data remains unchanged, it may not set the scope. $ Last to true.
http://plnkr.co/edit/hwmOlI6YrgS4H1C1h7k2?p=preview
So what is the best way to run code in a directive when ng-repeat is complete?
source share