Skip to content Skip to sidebar Skip to footer

Form Validation Popup Window Message Works Only If Change Is Made In Angularjs

I have a form which need to show validation error popup window message if clicked submit. Here is my form.

Solution 1:

For the validation part of your question, I would just check for user along with user.firstname:

if(!user || !user.first){ $ionicPopup.alert({
  title: 'First Name Required!',
  template:'Firstname'
});

and you can use $ionicLoading, after injecting it into the controller, like this:

else {
  $ionicLoading.show({ template: 'Loading...' });
  Friends.setall(user).then(function(msg){
    console.log("From server"+msg.data);
    $ionicLoading.hide();
  });
}

Post a Comment for "Form Validation Popup Window Message Works Only If Change Is Made In Angularjs"