Hi guys ,
i have multiple ids that ive declared in the @viewChild
@ViewChild("genderChipList") genderChipList!: ElementRef;
@ViewChild("locationChipList") locationChipList!: ElementRef;
now ill pass the id name throught function and get the id dynamically
isListEmpty('genderChipList')
isListEmpty('locationChipList')
isListEmpty(id:any) {
console.log("the divs======= ", this[id]);
}
but how do i make this work? this[id] is throwing implicitly of any type error. can anyone help?