Binding kendo ui grid columns headers to the scope in AngularJs
问题 I'm using a kendo ui grid, and I want to bind the columns headers to a json file, instead of specifying it directly in the controller. I created a function that successfully retrieves the array from the json file, and populate the scope: function returnColumns(){ $http.get('app/data/headers.json') .then(function(res){ $scope.myHeaders = res.data; }); } returnColumns(); And in the grid's options I'm referring the columns to that variable in the scope: $scope.options = { dataSource: { type: