hsuanxyz/ionic-tags-input

Formcontrol angular2

Opened this issue · 2 comments

How can i use this plugin with formcontrolname

+1

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)