AngularJS 1.3 add $submitted for form, so you can use $submitted to track whether the submit event is trggered. Read More: https://egghead.io/lessons/angularjs-new-in-angular-1-3-updates-to-forms <!DOCTYPE html> <html> <head> <scrip…
Note: Can use $dirty to check whether user has intracted with the form: https://docs.angularjs.org/api/ng/type/form.FormController Read More: http://www.yearofmoo.com/2014/05/how-to-use-ngmessages-in-angularjs.html https://egghead.io/lessons/angularj…
getterSetter: boolean value which determines whether or not to treat functions bound to ngModel as getters/setters to have greater control over your model. allowInvalid: boolean value which indicateds that the model can be set with values that did n…
First time dealing with Reactive form might be a little bit hard to understand. I have used Angular-formly for AngularJS bofore, what it does is using Javascript to define form's template, data and validations. In HTML, it is just a simple directive…
Forms in Angular 2 are essentially wrappers around inputs that group the input values together into an object and also check that all the inputs are valid. Angular 2 ‘sngForm allows you to get a reference to that object and validity and use them to d…