Nativescript-drop-down^3.2.1

plugins

#1

Nativescript DropDown Plugin does not work in reactive form…
While initializing the reactive form it shows thee following error…
" ERROR Error: No value accessor for form control with name: ‘parkAdd’"
This is My Code…

<DropDown formControlName=“parkAdd” name=“ParkAdd” class=“dropDown box input m-t-5”
[items]="parkAdd"
hint=“Select Parking Address”
[(ngModel)]=“selectedIndex”
(selectedIndexChanged)=“onchange($event)”
(opened)=“onopen()”
(closed)=“onclose()”>

Help me to solve this…
Thankz in advnace…


#2

Are you sure you imported the ReactiveFormsModule from angular.

import { ReactiveFormsModule } from "@angular/forms";
...
imports:[
....
ReactiveFormsModule
....
],
...

#3

Yeah @manojdcoder… it initialize remaining form fields… this field nly hav these prblm…


#4

@Bharathiraja I hope you imported NativeScriptFormsModule too, with both imported the latest version of DropDown plugin just works with reactive forms.

Update: Incase if you are still facing issues, try creating a sample with Playground where we can see the issue.