markau
markau

Reputation: 922

ng-grid is not updating when the scope variable updates

I am wondering if I am doing something wrong here. The scope variable which provides data to the grid is being updated, as evidenced by the changing data on the page and console output, however the grid does not refresh.

http://jsbin.com/sicasaqe/1/

I note that this question has been asked before, and there is an issue on github, but none of these examples are as basic as this and the suggestions I tried did not help.

I thought I would post a basic example and see what people think.

Thank you for reading.

Upvotes: 1

Views: 689

Answers (1)

Michael Kang
Michael Kang

Reputation: 52867

You should assign the model to your grid this way:

$scope.gridOptions = { 
   data: 'model.data'
};

Upvotes: 1

Related Questions