ionic-tags-input
ionic-tags-input copied to clipboard
Formcontrol angular2
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)