mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
refactor(demos): give each component section its own view
This commit is contained in:
10
demos/component-docs/popups/popups.html
Normal file
10
demos/component-docs/popups/popups.html
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
<ion-navbar *navbar>
|
||||
<ion-title>Popups</ion-title>
|
||||
</ion-navbar>
|
||||
|
||||
<ion-content class="has-header padding">
|
||||
<button block (click)="showPopup()">
|
||||
Show Popup
|
||||
</button>
|
||||
</ion-content>
|
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