Hi. I am new to angular.
I have an array of objects:
$scope.connections = [
new ConnectionModel('Connection 1', true, true, true,
'5.9.1.1', '5.9.1.1', 'success', 'locked', ''),
new ConnectionModel('Connection 2', true, false, true,
'5.9.1.1', '5.9.1.1', 'error', 'locked', 'Something went wrong'),
new ConnectionModel('Connection 3', true, true, true,
'5.9.1.1', '5.9.1.1', 'warning', 'locked', 'Please note something needs
doing')
];
if a property changes on a model I want to process that change to the
server.
e.g. if Connection 2 locked status changes I want to make an ajax call.
How can I watch the object so that I am notified when this property changes.
Please note that any of the objects may change if any property on any of
the objects change I want to be able to know about it.
something like a silverlight INotifyPropertyChanged
--
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.