Following code:
<ion-list>
<ion-item tappable (click)="action()">
<ion-icon name="pin" item-left></ion-icon>
<ion-label>Text</ion-label>
</ion-item>
</ion-list>
End in error while running my app with “No provider for NgControl!”
How could I solve that?
I added ReactiveFormsModule to my app.module.ts, didn’t helped that much…
Thx in advance for the help
You must have more to it than that.
That would not generate an error like that.
Please provide a more complete example.
thx @mhartington. finally since, I was already there, I change that part of the app and therefore I don’t have the problem anymore.
davor
4
Hey @reedrichards would you mind sharing your solution? I think it has to do something with validation, thanks.
I simply finally removed the label because in my workflow an input field wasn’t necessary there. So that may not apply to everybody I guess
<ion-list>
<ion-item tappable (click)="action()">
<ion-icon name="pin" item-left></ion-icon>
Text
</ion-item>
</ion-list>