ion-calendar init selected
public myDate:string=new Date().toISOString();
ion-calendar init selected
public myDate:string=new Date().toISOString();
"ion-calendar" default date selected
/* Make sure the "format" tag anf the ngmodel initial values are in
the same format */
<ion-calendar [(ngModel)]="date" [format]="'YYYY-MM-DD'">
</ion-calendar>
...
import { Component } from '@angular/core';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
date = '2017-9-28';
constructor() { }
}
ion2 calendar
npm install ion2-calendar moment --save
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us