mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
Starting modal test
This commit is contained in:
26
ionic/components/modal/test/basic/index.js
Normal file
26
ionic/components/modal/test/basic/index.js
Normal file
@ -0,0 +1,26 @@
|
||||
import {bootstrap} from 'angular2/angular2'
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {Content, List, Item, Button} from 'ionic/ionic';
|
||||
|
||||
|
||||
@Component({ selector: 'ion-app' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
directives: [Content, List, Item, Button]
|
||||
})
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
console.log('IonicApp Start')
|
||||
}
|
||||
|
||||
openModal() {
|
||||
console.log('Opening modal');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export function main() {
|
||||
bootstrap(IonicApp);
|
||||
}
|
3
ionic/components/modal/test/basic/main.html
Normal file
3
ionic/components/modal/test/basic/main.html
Normal file
@ -0,0 +1,3 @@
|
||||
<ion-content class="padding">
|
||||
<button primary (click)="openModal()">Open Modal</button>
|
||||
</ion-content>
|
Reference in New Issue
Block a user