mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): add required custom schema to all e2e modules
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { IonicApp, IonicModule } from '../../../../..';
|
||||
|
||||
@@ -15,5 +15,6 @@ import { HomePageModule } from '../pages/home-page/home-page.module';
|
||||
HomePageModule
|
||||
],
|
||||
bootstrap: [IonicApp],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
export class AppModule { }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { IonicPageModule } from '../../../../../..';
|
||||
|
||||
import { HomePage } from './home-page';
|
||||
@@ -9,6 +9,7 @@ import { HomePage } from './home-page';
|
||||
],
|
||||
imports: [
|
||||
IonicPageModule.forChild(HomePage)
|
||||
]
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
export class HomePageModule {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { IonicApp, IonicModule } from '../../../../..';
|
||||
|
||||
@@ -14,6 +14,7 @@ import { FirstPageModule } from '../pages/first-page/first-page.module';
|
||||
IonicModule.forRoot(AppComponent, {}),
|
||||
FirstPageModule
|
||||
],
|
||||
bootstrap: [IonicApp]
|
||||
bootstrap: [IonicApp],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
export class AppModule { }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { IonicPageModule } from '../../../../../..';
|
||||
import { FirstPage } from './first-page';
|
||||
|
||||
@@ -8,6 +8,7 @@ import { FirstPage } from './first-page';
|
||||
],
|
||||
declarations: [
|
||||
FirstPage
|
||||
]
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
export class FirstPageModule { }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { IonicPageModule } from '../../../../../..';
|
||||
import { SecondPage } from './second-page';
|
||||
@NgModule({
|
||||
@@ -10,6 +10,7 @@ import { SecondPage } from './second-page';
|
||||
],
|
||||
entryComponents: [
|
||||
SecondPage
|
||||
]
|
||||
],
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||
})
|
||||
export class SecondPageModule { }
|
||||
|
||||
Reference in New Issue
Block a user