mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
test(ngmodule): update to ngmodule
This commit is contained in:
33
src/components/typography/test/basic/app-module.ts
Normal file
33
src/components/typography/test/basic/app-module.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Component, NgModule } from '@angular/core';
|
||||
import { IonicApp, IonicModule } from '../../../..';
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
export class E2EPage {
|
||||
dynamicColor: string = 'secondary';
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
export class E2EApp {
|
||||
root = E2EPage;
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
E2EApp,
|
||||
E2EPage
|
||||
],
|
||||
imports: [
|
||||
IonicModule.forRoot(E2EApp)
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
entryComponents: [
|
||||
E2EApp,
|
||||
E2EPage
|
||||
]
|
||||
})
|
||||
export class AppModule {}
|
||||
@@ -1,23 +0,0 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { ionicBootstrap, App } from '../../../../../src';
|
||||
|
||||
|
||||
@Component({
|
||||
templateUrl: 'main.html'
|
||||
})
|
||||
class E2EPage {
|
||||
dynamicColor: string = "secondary";
|
||||
|
||||
constructor(app: App) {
|
||||
app.setTitle('Basic Buttons');
|
||||
}
|
||||
}
|
||||
|
||||
@Component({
|
||||
template: '<ion-nav [root]="root"></ion-nav>'
|
||||
})
|
||||
class E2EApp {
|
||||
root = E2EPage;
|
||||
}
|
||||
|
||||
ionicBootstrap(E2EApp);
|
||||
@@ -26,6 +26,7 @@
|
||||
Walking through the <sub color="danger">streets</sub> of Soho in the rain.
|
||||
He <i color="primary">was</i> looking for a place called Lee Ho Fook's.
|
||||
Gonna get a <a color="secondary">big dish of beef chow mein.</a>
|
||||
<a class="color-purple">My purple class link.</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@@ -38,3 +39,9 @@
|
||||
</p>
|
||||
|
||||
</ion-content>
|
||||
|
||||
<style>
|
||||
.color-purple {
|
||||
color: purple;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user