Estoy llamando al primer componente (ABC) dentro de la segunda pestaña del componente (xyz), el matPginator está presente en el componente ABC, este valor de PMOpaginator no está definido y no funciona
@ViewChild(MatPaginator) PMOpaginator: MatPaginator; @ViewChild(MatSort) PMOsort: MatSort; this.subconEmployeeList = response; this.dataSource = new MatTableDataSource(this.subconEmployeeList); this.dataSource.sort = this.PMOsort; this.dataSource.paginator = this.PMOpaginator; this.excelDataSource = this.dataSource; in the above code this.PMOsort and this.PMOpaginator are going undefined