Angular/ionic - Model Does Not Update $scope In Controller
I am a newb with angularjs and I am trying something that I believe should be very simple ... but turns out I am not figuring it out. I have a $scope variable that I want to double
Solution 1:
Using directly $scope. is not a good practice in angularJS. There are various post of it, more concernign $scope inheritence. For exemple : http://learnwebtutorials.com/why-ng-model-value-should-contain-a-dot
Therefore, your need to change your model like that :
$scope.myModel = {};
$scope.myModel.src = "---"
And your html to bind to myModel.src
Post a Comment for "Angular/ionic - Model Does Not Update $scope In Controller"