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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -