mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(img): remove extra app.module.ts file
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
import { Component, Input, NgModule } from '@angular/core';
|
||||
import { IonicApp, IonicModule } from '../../../../../ionic-angular';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: '<my-img>',
|
||||
template: '<ion-img [width]="width" [height]="height" [src]="src"></ion-img>'
|
||||
})
|
||||
export class MyImg {
|
||||
@Input() width: any;
|
||||
@Input() height: any;
|
||||
@Input() src: any;
|
||||
}
|
||||
|
||||
@Component({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
export class E2EPage {
|
||||
images = [
|
||||
{
|
||||
width: '100',
|
||||
height: '44',
|
||||
src: '../img/batmobile.jpg'
|
||||
},
|
||||
{
|
||||
width: '100',
|
||||
height: '75',
|
||||
src: '../img/knight-rider.jpg'
|
||||
},
|
||||
{
|
||||
width: '100',
|
||||
height: '68',
|
||||
src: '../img/general-lee.jpg'
|
||||
}
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
export class E2EApp {
|
||||
root = E2EPage;
|
||||
}
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
E2EApp,
|
||||
E2EPage,
|
||||
MyImg
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
E2EApp,
|
||||
E2EPage
|
||||
]
|
||||
})
|
||||
export class AppModule {}
|
||||
Reference in New Issue
Block a user