scope.myForm = {
field1: 'initial_value',
field2: null,
field3: false
}
if (newFields.field2.length) {
scope.buttonDisabled = true;
}
else if (!newFields.field3){
scope.buttonDisabled = true;
}
if (newFields.field2 == initialData.field2 ) {
scope.buttonDisabled = true;
}}
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/pdECqJju5C8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.