How do you show a popover pointing at a button on page load (without having the user click anything)? Like this:
Here’s my current HTML and TS
home.html
<ion-content padding>
<button ion-button (click)="showPopover($event)">Show Popover</button>
</ion-content>
home.ts
import { Component, ViewChild } from '@angular/core';
import { NavController, PopoverController } from 'ionic-angular';
import { RangeExtendPopoverPage } from "../range-extend-popover/range-extend-popover";
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController, private popoverCtrl: PopoverController) {}
showPopover(ev) {
let popover = this.popoverCtrl.create(RangeExtendPopoverPage);
popover.present({
ev: ev
});
}
}