You can read ngIf . Now tell me what your data is stored in $scope.data
. If you have something like this
<div ng-if="data"></div>
This div will only be injected into the DOM when it $scope.data
exists, which means you can make it wait for data before it is injected into the DOM.
source
to share