Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formcontrol angular2 #13

Open
netwrkx opened this issue Feb 19, 2018 · 2 comments
Open

Formcontrol angular2 #13

netwrkx opened this issue Feb 19, 2018 · 2 comments

Comments

@netwrkx
Copy link

netwrkx commented Feb 19, 2018

How can i use this plugin with formcontrolname

@netwrkx netwrkx changed the title Formcontrol angular Formcontrol angular2 Feb 19, 2018
@larpo1
Copy link

larpo1 commented Mar 29, 2018

+1

@max-in-bc
Copy link

max-in-bc commented Aug 7, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants