question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic v4 datetime binded to reactiveform

See original GitHub issue

Bug Report

Ionic:

   ionic (Ionic CLI)          : 4.0.1 (/opt/node-v10.5.0-linux-x64/lib/node_modules/ionic)
   Ionic Framework            : @ionic/angular 4.0.0-beta.0
   @angular-devkit/core       : 0.7.0-rc.3
   @angular-devkit/schematics : 0.7.0-rc.3
   @angular/cli               : 6.0.8
   @ionic/ng-toolkit          : 1.0.0
   @ionic/schematics-angular  : 1.0.1

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0

System:

   NodeJS : v10.5.0 (/opt/node-v10.5.0-linux-x64/bin/node)
   npm    : 6.2.0
   OS     : Linux 4.15

Environment:

   ANDROID_HOME : not set

Describe the Bug Ion-datimetime cannot be binded properly to reactive form control. ion-input can be binded to the form but ion-datetime value are not binded properly to the form. The form control is not updated when ion-datetime is changed …

Steps to Reproduce Create a simple reactive form with one single control. Bind the control to a template ion-datetime

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
MrSparkllecommented, Aug 29, 2018

Using Ionic Framework : @ionic/angular 4.0.0-beta.5

Ionic The ion-datetime has been binded properly to form control. But instead of a ISO-8601 format like ‘2017-08-21T00:00:00’ it persist a object like this:

{
  "dateBk": {
    "day": { "text": "21", "value": 21, "columnIndex": 0 },
    "month": { "text": "Aug", "value": 8, "columnIndex": 1 },
    "year": { "text": "2017", "value": 2017, "columnIndex": 2 }
  }
}
0reactions
ionitron-bot[bot]commented, Nov 29, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic v4 datetime binded to reactiveform · Issue #15059 - GitHub
Ion -datimetime cannot be binded properly to reactive form control. ion-input can be binded to the form but ion-datetime value are not binded ......
Read more >
Reactive form date picker in ionic 5 - angular - Stack Overflow
Try to use ion-datetime framework date picker instead of native date picker. https://ionicframework.com/docs/api/datetime .
Read more >
Ionic datepicker for form
Hello, I need add ionic datepicker inside in a ionic form. I have follow this doc for install datepicker but i don't have...
Read more >
Ionic 6 Form Validation Tutorial with Reactive Forms
In this step by step Ionic 6 Forms validation tutorial, we will learn to create and validate a form with Angular's Reactive Forms...
Read more >
How to use the Ionic 6 Datetime component - YouTube
In this video we are taking a closer look at the Ionic 6 datetime component and implement a stylish modal that works for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found