Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70439

[ionic4] unable to assign type "FormControl" to a variable decorated with @input

$
0
0

@pantarmj wrote:

I am declaring a variable with type “FormControl” as below:

@Input() formControlItem: FormControl;

and when setting the value to it in a method as

this.formController.setValue()

it is throwing error “Cannot read property ‘setValue’ of undefined”… while it was working properly in ionic 3.

Can some one plz help?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70439

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>