mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
refactor(demos): give each component section its own view
This commit is contained in:
16
demos/component-docs/popups/popups.ts
Normal file
16
demos/component-docs/popups/popups.ts
Normal file
@ -0,0 +1,16 @@
|
||||
import {IonicPlatform, IonicView, Popup} from 'ionic/ionic';
|
||||
|
||||
@IonicView({
|
||||
templateUrl: 'popups/popups.html',
|
||||
})
|
||||
export class PopupsPage {
|
||||
|
||||
constructor(popup: Popup) {
|
||||
this.popup = popup;
|
||||
}
|
||||
|
||||
showPopup() {
|
||||
this.popup.alert("Popup Title").then(() => {
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user