Closed gerbsen closed 9 years ago
I think you are instantiating two controllers somewhere and the scope is not the same, check this plunkr http://plnkr.co/edit/EbSK9M?p=preview travelTime is shared beetween the pageslide and the body
hmm. i'm using ngRoute with only one controller that fills ng-view in my index page.. so no 2nd conrollter :(
Okay, I found out that this only happens if I load the ui.bootstrap module!?
Hey, I like this plugin very much but I have this wired problem where my scope variables are updated in the view part but not in the controller. I have this html from angular-bootstrap
Travel time is displayed correctly but the variable inside the controller is never updated. Also $scope.$watch('travelTime', function(old, newV){ }) does never fire. If I use this outside of the pageslide everything goes as planned. I've found the workaround with the ng-click="setTravelTime(300)" attribute, but this seems to me a bit hacky. :)
Thank you for this plugin and any help is kindly appreciated, Daniel