refactor(demos): give each component section its own view

This commit is contained in:
Drew Rygh
2015-10-08 10:01:13 -05:00
parent c3eed60d22
commit dcebbeaf56
40 changed files with 985 additions and 276 deletions

View 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>

View 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(() => {
});
}
}