Day: July 7, 2015

  • Forms in Angular

    Most of the code is in the HTML. Here are the main points: On the ‘form’ element itself add ‘novalidate’ attribute to turn off the default validation that some browsers have, have a name, as well as ‘ng-submit=”formName.$valid && Ctrl.submitFunction()”. The last bit does the submit function (not the submit button), checks if the form…