export directive NgFormModel
export directive NgFormModel
exported from angular2/common defined in angular2/src/common/forms/directives/ng_form_model.ts (line 23)
Binds an existing control group to a DOM element.
Example (live demo)
In this example, we bind the control group to the form element, and we bind the login and password controls to the login and password elements.
We can also use ngModel to bind a domain model to the form.
Selectors
[ngFormModel]
Inputs
ng-form-model
bound to NgFormModel.form
Outputs
ng-submit
bound to NgFormModel.ngSubmit
Exported As
ngForm
Constructor
constructor(_validators: any[], _asyncValidators: any[])
constructor(_validators: any[], _asyncValidators: any[])
Not Yet Documented
Members
form : ControlGroup
form : ControlGroup
Not Yet Documented
directives : NgControl[]
directives : NgControl[]
Not Yet Documented
ngSubmit : EventEmitter
ngSubmit : EventEmitter
Not Yet Documented
ngOnChanges(changes: {[key: string]: SimpleChange}) : void
ngOnChanges(changes: {[key: string]: SimpleChange}) : void
Not Yet Documented
formDirective : Form
formDirective : Form
Not Yet Documented
control : ControlGroup
control : ControlGroup
Not Yet Documented
path : string[]
path : string[]
Not Yet Documented
addControl(dir: NgControl) : void
addControl(dir: NgControl) : void
Not Yet Documented
getControl(dir: NgControl) : Control
getControl(dir: NgControl) : Control
Not Yet Documented
removeControl(dir: NgControl) : void
removeControl(dir: NgControl) : void
Not Yet Documented
addControlGroup(dir: NgControlGroup)
addControlGroup(dir: NgControlGroup)
Not Yet Documented
removeControlGroup(dir: NgControlGroup)
removeControlGroup(dir: NgControlGroup)
Not Yet Documented
getControlGroup(dir: NgControlGroup) : ControlGroup
getControlGroup(dir: NgControlGroup) : ControlGroup
Not Yet Documented
updateModel(dir: NgControl, value: any) : void
updateModel(dir: NgControl, value: any) : void
Not Yet Documented
onSubmit() : boolean
onSubmit() : boolean
Not Yet Documented