docs(demos/showWhen): api demo

This commit is contained in:
Drew Rygh
2015-12-09 11:19:09 -06:00
parent 59a3fbe88b
commit b7bff56d25
3 changed files with 30 additions and 0 deletions

1
demos/show-when/app.html Normal file
View File

@ -0,0 +1 @@
<ion-nav id="nav" [root]="rootPage" #content></ion-nav>

20
demos/show-when/index.ts Normal file
View File

@ -0,0 +1,20 @@
import {App, Page, IonicApp} from 'ionic/ionic';
@App({
templateUrl: 'app.html'
})
class ApiDemoApp {
constructor() {
this.rootPage = InitialPage;
}
}
@Page({
templateUrl: 'main.html'
})
export class InitialPage {
constructor() {
}
}

View File

@ -0,0 +1,9 @@
<ion-navbar *navbar>
<ion-title>ShowWhen</ion-title>
</ion-navbar>
<ion-content padding>
<p show-when="ios">
<b>(show-when="ios")</b> This text is shown on iOS only. Click the Android tab to hide this text.
</p>
<ion-content>