Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use in angular form #86

Open
sertal70 opened this issue Aug 16, 2018 · 1 comment
Open

Use in angular form #86

sertal70 opened this issue Aug 16, 2018 · 1 comment

Comments

@sertal70
Copy link

I'm trying to use ion-datepicker in an angular form, so my code uses formControlName instead of [(value)] to bind the value:

<span ion-item item-right ion-datepicker formControlName='expDate' clear class="ScheduleDate">
   <span>{{expDate | date}} <ion-icon name="clipboard"></ion-icon> </span>
</span>          

But when I enter the page the following error is thrown:

ERROR Error: Uncaught (in promise): Error: No value accessor for form control with name: 'expDate'
Error: No value accessor for form control with name: 'expDate'

Is there any way to fix this?

@misha130
Copy link
Owner

misha130 commented Aug 16, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants