初始化Ionic 5之前无法访问'ChatClientePageModule'

时间:2020-06-26 21:07:39

标签: angular ionic-framework

执行合并后,单击按钮后,list-client.component.ts页面屏幕无法访问

https://i.stack.imgur.com/5s5Eo.png

我的chat-c​​liente.module.ts:

import { NgModule } from '@angular/core';
import { IonicModule } from '@ionic/angular';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { ImagePicker } from '@ionic-native/image-picker';


import { ChatClientePage } from './chat-cliente.page';
import { ListaClientePageComponent } from './lista-cliente.component';

const routes: Routes = [
  {
    path: '',
    redirectTo: 'lista',
  },
  {
    path: 'chat/:id',
    component: ChatClientePage
  },
  {
    path: 'lista',
    component: ListaClientePageComponent
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes),
  ],
  declarations: [
    ChatClientePage,
    ListaClientePageComponent
  ],
  providers: [
    ImagePicker
  ]
})
export class ChatClientePageModule {}

0 个答案:

没有答案