Building  Large-Scale Web Applications with Angular
上QQ阅读APP看书,第一时间看更新

Workout validation

The workout data needs to be validated for a number of conditions.

After taking the step of adding the local variable references for ngModel and the required attribute to our input fields, we have been able to see how ngModel tracks changes in the state of these controls and how it toggles the CSS styles.