Hi all,
I have an element displaying some value that may change some time. The code
looks like this:
<h3>{{someVariable}}</h3>
What I want to do is when the value of $scope.someVariable changes, the
color of the text changes as well. I made it work on an input field like
this:
<input ng-model="someOtherVariable" ng-change="changeColor(this)">
let changeColor = function(element) {
element.css('color', 'green');
setTimeout(function() {
element.css('color', 'none');
}
}
However, this method does not work when using ng-bind. Any suggestions on
what I should do?
Thanks in advance!
Cheers, Filip. :)
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.