Can someone please tell me why this code on an input element is not working 
please.

This code checks the UserMap function to see if a user exists before 
registration

ng-model="System.Register.Username"
ng-change="if(UserMap(System.Register.Username) != null && 
UserMap(System.Register.Username) != undefined) { System.Register.ValidUser 
= false; } else { System.Register.ValidUser = true; }" 

Am I not allowed to write an if statement in the ng-change?

My error is: unexpected {

-- 
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.

Reply via email to