p-checkbox formControlName

UI Components for Angular
Post Reply
Dmorgan92
Posts: 8
Joined: 21 May 2017, 00:49

27 May 2017, 16:44

Hi. I want to create a reactive form with a list of checkboxes. Using [(ngModel)] allows me to store a list of selected values. This doesn't seem to work with formControlName; only the last checked value appears in the list. Please see the plnkr here http://plnkr.co/edit/QgXNX9Fzko9btWakuOOf?p=preview.

How can I get the checkboxes to store a list of checked values? Thanks.

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

28 May 2017, 06:42

You can create an issue in the github issue tacker.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna


Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests