0

I'm trying to use the Angular UI Grid. In my HTML I have the following code.

    <div ui-grid="gridOptions"></div>

And in my controller I have the following javascript.

    $scope.values = [{ id: 0, namn: 'erik' }];

    $scope.gridOptions = {
                data: $scope.values
    }

When starting my page the data is displayed in the grid. The problem is when I try to update the data. The changes is not propragated to the grid. The follwing will not update the grid. Why?

$scope.values = [{ id: 100, namn: 'Test' }];
3
  • 1
    when and how do you call the changing method? Commented Oct 29, 2015 at 13:43
  • For instance, if I call it in a click event. Commented Oct 29, 2015 at 14:09
  • please post more code Commented Oct 29, 2015 at 14:13

1 Answer 1

2

it's rather somthing like this :

$scope.gridOptions = {
                data: 'values'
    }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.