码迷,mamicode.com
首页 > 其他好文 > 详细

[Angular] Create a custom validator for template driven forms in Angular

时间:2017-10-22 01:30:45      阅读:101      评论:0      收藏:0      [点我收藏+]

标签:rms   als   help   width   nbsp   custom   through   htm   mes   

User input validation is a core part of creating proper HTML forms. Form validators not only help you to get better quality data but they also guide the user through your form. Angular comes with a series of built-in validators such as required or maxLength etc. But very soon you have to build your own custom validators to handle more complex scenarios.
In this lesson you‘re going to learn how to create such custom validators for Angular‘s template driven forms.

 

 

[Angular] Create a custom validator for template driven forms in Angular

标签:rms   als   help   width   nbsp   custom   through   htm   mes   

原文地址:http://www.cnblogs.com/Answer1215/p/7707478.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!