Angular ng-grid declare gridOptions in function

前端 未结 1 1797
醉梦人生
醉梦人生 2021-01-26 17:50

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

1条回答
  •  被撕碎了的回忆
    2021-01-26 18:45

    To stop rendering till the data arrives do something like

    In you controller when the data is available setup the gridoptions object, followed by contentAvailable to true.

    0 讨论(0)
提交回复
热议问题