Hi All,
I have a directive which has a watch in it, by default the scope is set to
zero. Is there a way to trigger ng-model change from controller. I am
getting the date by making a async call.
Some piece of code.
<div gauge
input="5"
unit="%"
description="Fraction of fleet online"
guageid="fleet_online"
data-service="/api/getDataResult/:foo.json"
ng-model="input">
angular.element('#fleet_online').attr('input',24);
scope.$watch('input', function () {console.log('gg');
scope.updateMappedValue();
draw();});
How to trigger ng-model update here from controller.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.