Ion-datetime is having a problem


#1

ion-datetime is having some problem when declaring [(ngModel)].
its not loading the other components on the page & not giving any errors on console :frowning:

Thanks


#2

Can you please show what you have for code? It’s a bit hard to find the issue without it :grin:


#3

its showing en error:

Uncaught (in promise): EXCEPTION: No value accessor for '' in [myDate in GettingStartedPage@21:46]

TS Code:

import {Page} from 'ionic-angular';

@Page({
  templateUrl: 'build/pages/getting-started/getting-started.html'
})
export class GettingStartedPage {
	myDate : any	
  	
	  constructor() {
	  	this.myDate = new Date().toString()
	  }
}

#4

ionicBootstrap is not available in 2.0.0-beta.25.
ion-datetime is not showing the page. infect it is not displaying the whole html properly…
i am stuck with it guys…
please helpp…

thanks

HTML Code

TS Code:

import {Page, NavController, NavParams} from 'ionic-angular';

@Page({
  templateUrl: 'build/pages/item-details/item-details.html'
})
export class ItemDetailsPage {
  public event = {
    month: '1990-02-19',
    timeStarts: '07:43',
    timeEnds: '1990-02-20'
  }
  constructor() {

  }
}

check the attached screenshot


#5

ion-datetime problem is solved by upgrading to ionic beta.8
but there is some minor issue. its working fine on my HTC One M8 but on the Infenix Android phone is showing something like this…
please help me out.

Thanks

Check the dates are overlapping to eachother.


Minimum android version supported by ionicv2
#6

You could try using Crosswalk, check the linked topic for details:


#7

I have installed the suggested cordova crosswalk plugin
after successful installation. i just build the app for android and the below error appears.

could you please help me out to resolve this.

thanks


#8

i have installed the crosswalk in the project, but still the dates are overlapping on the Infenix Android Phone.
HTC One M8 is fine…

please help


#9

Did you manage to build the APK with Crosswalk successfully? I think that it should have fixed the problem. Check that Crosswalk is integrated in the APK (the size of the APK should be with ~20MB more than it was before) and that you’re uploading the new APK and not an old one.


#10

i have checked the size of the apk file. it’s 9MB after crosswalk.
before it was 6MB.

i have noticed one more thing. if you see the terminal screenshot, Why it says “null” on the second line from top.???

thanks


#11

its working fine now :slight_smile:
but the size of the app has reached to 70MB :confused:
anyways thanks for your help…


#12

Ok, great, I’m glad you got it working. I’m not sure why the app size has reached 70MB though. AFAIK Crosswalk should add “only” ~20MB.