Ionic calendar issue

I did not get calendar
this is my code import { Component, OnInit } from ‘@angular/core’;
import { AlertController, NavController, ModalController } from ‘@ionic/angular’;
import { Calendar } from ‘@ionic-native/calendar/ngx’;
@Component({
selector: ‘app-calendar’,
templateUrl: ‘./calendar.page.html’,
styleUrls: [’./calendar.page.scss’],
})
export class CalendarPage implements OnInit {

public startDate; Date;
constructor(public alertController: AlertController, public navCtrl: NavController, public modalCtrl: ModalController, private calendar: Calendar) {
    
}

ngOnInit() {
}
leaves() {
this.navCtrl.navigateRoot(’/leaves’);
}
people() {
this.navCtrl.navigateRoot(’/people’);
}
approvals() {

    this.navCtrl.navigateRoot('/approvals');
}
notification() {

    this.navCtrl.navigateRoot('/notification');
}
opencal() {
    this.calendar.createCalendar('MyCalendar').then(
        (msg) => { console.log(msg); },
        (err) => { console.log(err); }
    );
    this.calendar.openCalendar(this.startDate)
}

}

My html code

    <ion-buttons slot="start">
        <ion-menu-button></ion-menu-button>
    </ion-buttons>
    <ion-title>
        Calendar
    </ion-title>
    <ion-buttons slot="secondary">
        <ion-button (click)="notification()">
            <ion-icon name="notifications"></ion-icon>
        </ion-button>
        <ion-button (click)="approvals()">
            <ion-icon name="list-box"></ion-icon>
        </ion-button>
        <ion-button  (click)="addEvent()">
            <ion-icon name="add"></ion-icon>
        </ion-button>
        
    </ion-buttons>
</ion-toolbar>
    <ion-segment-button value="calendar" class="active">
        <ion-icon name="md-calendar"></ion-icon>
    </ion-segment-button>

    <ion-segment-button value="Leaves" (click)="leaves()">
        <ion-icon name="paper-plane"></ion-icon>
    </ion-segment-button>
</ion-segment>

<button ion-button (click)=“opencal()”>Calendar

please help me to solve

What errors are you getting? Is the opencal function called? Did you import the plugin into your app.module.ts file?