QQoutesPage是以下两个模块的声明的一部分:AppModule和QQoutesPageModule

时间:2018-08-21 11:45:09

标签: ionic-framework

我已在Ionic中添加了QQoutesPage,如果我在app.modules.ts列表中的@NgModule中添加了错误信息

  

QQoutesPage是以下两个模块的声明的一部分:AppModule和   QQoutesPageModule!*

如果我从QQoutesPages列表中删除了@NgModules,则得到--

  

错误:组件QQoutesPage不属于任何NgModule或模块   尚未导入到您的模块中。

app / modules.ts

import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

import { MyApp } from './app.component';

import { FavoritesPage } from '../pages/favorites/favorites';
import { LibraryPage } from '../pages/library/library';
import { QuotePage } from '../pages/quote/quote';
import { SettingsPage } from '../pages/settings/settings';
import { tabsPage } from '../pages/tabs/tabs';
import { QQoutesPage } from '../pages/q-qoutes/q-qoutes';
import { QuotesServices } from '../services/quotes';



@NgModule({
declarations: [
  MyApp,
FavoritesPage,
LibraryPage,
QuotePage,
SettingsPage,
tabsPage ,QQoutesPage,
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    FavoritesPage,
    LibraryPage,
    QuotePage,

    SettingsPage,
    tabsPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    QuotesServices,QQoutesPage
     ]
   })
   export class AppModule {}

0 个答案:

没有答案