I\'m new to Angular, and I\'m trying to declare gridOption for ng-grid within a function, because I don\'t want it to fire before the data comes from t
gridOption
ng-grid
To stop rendering till the data arrives do something like
<div ng-if="contentAvailable"> <ng-grid/> </div>
In you controller when the data is available setup the gridoptions object, followed by contentAvailable to true.
contentAvailable