Model-Driven Forms with dropdown

UI Components for Angular
cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Aug 2016, 18:00

Good to hear!

punkin28071
Posts: 23
Joined: 01 Jul 2016, 01:20
Location: North America

24 Aug 2016, 19:57

jbaird2685 wrote:Update: It was the "FormControlName" and not "formControlName" that was the problem. Its working now. Thanks for your help.
No problem. Glad it's working.

JohnS264
Posts: 18
Joined: 18 Aug 2017, 13:25

21 Nov 2017, 00:03

@jbaird2685

Can you please post your solution ?
I still don't get it - how it work for you ? you assign the grid which is FormControl
into formControlName directive which suppose to receive string.

this is your code:

Code: Select all

<p-dropdown [options]="grids" FormControlName="grid" (onChange)="updateData($event)"></p-dropdown>
where grid is :

Code: Select all

this.grid = new FormControl('physical');
Even if you change the FormControlName to formControlName (lower case) it should not supposed to work.

Can you please advise?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests