I need to validate the zip code to be numeric. I have seen many Ionic v1 examples that seem to not apply to Ionic v2. I get the msg : “Supplied parameters do not match any signature of call target”.
My question is: is the Call Target in the corresponding .HTML file, and if so, how must it be modified to match the signature?
The .html code looks like this:
#ion-item#
#ion-label floating#Zip Code#/ion-label#
#ion-textarea formControlName=“zipcode”##/ion-textarea#
#/ion-item#
The error started when I added the zipcode entry below.
this.dataForm = new FormGroup({
‘title’: new FormControl(title, Validators.required),
‘description’: new FormControl(description, Validators.required),
‘zipcode’: new FormControl(
zipcode, [’’, Validators.compose(
[Validators.required,
Validators.pattern(’^[+0-9]{10,12}$’)
])],
});
Thanks for any help.
Jerome