Run a directive after the DOM has finished rendering AngularJS -


i have object api take considerable time, want directive wait till gets data.

you can read on ngif. data stored in $scope.data. if have this

<div ng-if="data"></div> 

this div injected in dom when $scope.data exists, means can make wait data before gets injected in dom.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -