ManifestWebDesign / angular-gridster

An implementation of gridster-like widgets for Angular JS
http://manifestwebdesign.github.io/angular-gridster/
MIT License
964 stars 394 forks source link

How to link $scope between widgets #510

Closed whittssg closed 5 years ago

whittssg commented 5 years ago

Hello, I am using this library with angular 1.6 and it is working well but I cant seem to get two way binding working between the widgets.

If i add an input to each of my widgets and then bind it to $scope.testInput. (<input ng-model="testInput") then when i type in one i would normally see it on all of the widgets but its like they are using seperate controllers.

The testInput doesnt even update in the controller but if i set $scope.testInput = "sometext" on the controller then i will see "sometext" in all of the widgets' inputs.

Is there only 1 way binding or something? Did i miss something?

Thanks