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 the server.
But if I do so, it cause an error:
TypeError: Cannot set property 'gridDim' of undefined
What is going on?
ng-ifand only when the data is available render the grid.