Model-Driven Forms with dropdown
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Good to hear!
-
- Posts: 23
- Joined: 01 Jul 2016, 01:20
- Location: North America
No problem. Glad it's working.jbaird2685 wrote:Update: It was the "FormControlName" and not "formControlName" that was the problem. Its working now. Thanks for your help.
@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:
where grid is :
Even if you change the FormControlName to formControlName (lower case) it should not supposed to work.
Can you please advise?
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>
Code: Select all
this.grid = new FormControl('physical');
Can you please advise?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests