AngularJs Grid - Not working when place the code under a event

前端 未结 3 1773
星月不相逢
星月不相逢 2021-01-27 13:43

Here is the code.

Working version - Grid displays and page load.



    

        
3条回答
  •  后悔当初
    2021-01-27 14:29

    It's OK to define your gridOptions before the data actually gets there. That's the gorgeous part about the way Angular binds data - just set the data to the $scope object that will eventually have data & your grid will be smart enough to update itself by an internal $watch on the data item.

提交回复
热议问题