执行合并后,单击按钮后,list-client.component.ts页面屏幕无法访问
https://i.stack.imgur.com/5s5Eo.png
我的chat-cliente.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 {}