Answers for ""ion-calendar" default date selected"

1

ion-calendar init selected

public myDate:string=new Date().toISOString();
Posted by: Guest on December-02-2020
1

"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() { }
}
Posted by: Guest on December-07-2020
2

ion2 calendar

npm install ion2-calendar moment --save
Posted by: Guest on December-02-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language