- Added new wrapper of type
page
, usingNavigationController
to navigate. Now, you can do something like this:
constructor(monthPickerCtrl: IonicMonthPickerController) { }
openPicker() {
const picker = this.monthPickerCtrl.create({
container: {
type: 'page'
}
});
picker.present();
}
Or use like a component tag selector
<ion-monthpicker-trigger [container]="{ type: 'page' }"> </ion-monthpicker-trigger>
-
Changed
IonicMonthPickerTriggerComponent
to useControlValueAcessor
Angular interface, and transform them to a customFormControl
. This allow change component state byform.controls['fieldName'].setValue('myMonth')
and track form validation -
Removed the
afterRender
event from trigger component. This is not necessary anymore, because you can subscribe for Reactive Form events (change, blur...)