Formcontrol angular2
Opened this issue · 2 comments
netwrkx commented
How can i use this plugin with formcontrolname
larpo1 commented
+1
max-in-bc commented
It can work like this:
this.content_form = new FormGroup({
//you can also put other FormControls that use formControlName directly with this here
content_tags: new FormControl([])
});
onTagsUpdate(event){
this.content_form.get("content_tags").setValue(event);
}
then you can just set the (onChange) handler to onTagsUpdate($event)