摘要: Angular 2’s ngModel exposes more than just validity, it even gives you the states of whether the input has been “touched” or changed. This lesson expl 阅读全文
posted @ 2016-09-27 20:21 Zhentiw 阅读(370) 评论(0) 推荐(0)
摘要: Inputs using Angular 2’s ngModel automatically apply style classes of .ng-validand .ng-invalid each time the input’s validity changes. These classes a 阅读全文
posted @ 2016-09-27 20:00 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: The ngModelGroup directive allows you to group together related inputs so that you structure the object represented by the form in a useful and predic 阅读全文
posted @ 2016-09-27 18:48 Zhentiw 阅读(483) 评论(0) 推荐(0)
摘要: 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 v 阅读全文
posted @ 2016-09-27 18:36 Zhentiw 阅读(236) 评论(0) 推荐(0)
摘要: Angular 2’s ngModel provides error objects for each of the built-in input validators. You can access these errors from a reference to the ngModel itse 阅读全文
posted @ 2016-09-27 17:55 Zhentiw 阅读(263) 评论(0) 推荐(0)
摘要: In this tutorial we are going to learn how to navigate programmatically (or imperatively) by using the Router API. We are going to learn how to use th 阅读全文
posted @ 2016-09-27 01:11 Zhentiw 阅读(622) 评论(0) 推荐(0)