mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 09:34:19 +08:00
25 lines
495 B
TypeScript
25 lines
495 B
TypeScript
import { Component } from "@angular/core";
|
|
|
|
/**
|
|
* Validates that inline popovers will correctly display
|
|
* dynamic contents that are updated after the modal is
|
|
* display.
|
|
*/
|
|
@Component({
|
|
selector: 'app-popover-inline',
|
|
templateUrl: 'popover-inline.component.html'
|
|
})
|
|
export class PopoverInlineComponent {
|
|
|
|
items: string[] = [];
|
|
|
|
openPopover(popover: HTMLIonPopoverElement) {
|
|
popover.present();
|
|
|
|
setTimeout(() => {
|
|
this.items = ['A', 'B', 'C', 'D'];
|
|
}, 1000);
|
|
}
|
|
|
|
}
|