mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
docs(demos/showWhen): api demo
This commit is contained in:
1
demos/show-when/app.html
Normal file
1
demos/show-when/app.html
Normal file
@ -0,0 +1 @@
|
||||
<ion-nav id="nav" [root]="rootPage" #content></ion-nav>
|
20
demos/show-when/index.ts
Normal file
20
demos/show-when/index.ts
Normal 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() {
|
||||
}
|
||||
}
|
||||
|
9
demos/show-when/main.html
Normal file
9
demos/show-when/main.html
Normal 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>
|
Reference in New Issue
Block a user