摘要:
Define a filed should has validation: export class DemoFormSku { myForm: ControlGroup; sku: AbstractControl; constructor(fb:FormBuilder) { this.myForm 阅读全文
posted @ 2015-11-06 04:04
Zhentiw
阅读(622)
评论(0)
推荐(0)
摘要:
There are two main functions we’ll use on FormBuilder:•control - creates a new Control• group - creates a new ControlGroupimport {Component, bootstrap... 阅读全文
posted @ 2015-11-06 02:55
Zhentiw
阅读(618)
评论(0)
推荐(0)
摘要:
Control:Controls encapsulate the field's value, a states such as if it is valid, dirty or has errors.var nameControl = new Control("Nate");var name = ... 阅读全文
posted @ 2015-11-06 02:40
Zhentiw
阅读(466)
评论(0)
推荐(0)
摘要:
If you want to print someting like {{content}} on the html, using ng-non-bindable directive: 阅读全文
posted @ 2015-11-06 02:10
Zhentiw
阅读(380)
评论(0)
推荐(0)

浙公网安备 33010602011771号