I am encountering an issue where my component is being received as undefined. I have defined it as a @ViewChild
with an export class. Any assistance would be greatly appreciated. Although, when I attempt to view the definition, it correctly points to the class
SelectNccnInternalReviewersComponent
, however during debugging I am faced with the error of undefined
The export class that I am calling
import { SelectNccnInternalReviewersComponent } from "../../Components/Review/SelectNccnInternalReviewersComponent";
export class UpdateReviewersPopup implements AfterViewInit {
@ViewChild(SelectNccnInternalReviewersComponent) selectNccnInternalReviewersComponent: SelectNccnInternalReviewersComponent;
@Output() reviewersAdded: EventEmitter<void> = new EventEmitter<void>();
constructor( @Inject(ReviewService) private reviewService: ReviewService) {
}
this.selectReportYearsComponent.initPotentialReportYears(undefined, undefined);
The Component Class with the export class
@Component({
selector: ".select-nccn-internal-reviewers",
templateUrl: "/Views/Components/Review/SelectNccnInternalReviewersComponent.html"
})
export class SelectNccnInternalReviewersComponent extends SelectableGrid<PotentialMdReviewerDto, string>