Currently, I'm encountering an issue with adding data to a list using the following code snippet.
labelListSelected: Label[];
onChange(object, flag){
if(flag==false){
this.labelListSelected.push(object);
}
console.log(this.labelListSelected);
// console.log(object.Id+" : "+flag);
}