mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
14 lines
241 B
TypeScript
14 lines
241 B
TypeScript
import {App, Platform} from 'ionic/ionic';
|
|
|
|
@App({
|
|
templateUrl: 'main.html'
|
|
})
|
|
|
|
class DemoApp {
|
|
constructor(platform: Platform) {
|
|
this.platform = platform;
|
|
this.pet = "puppies";
|
|
this.isAndroid = platform.is('android');
|
|
}
|
|
}
|