📅  最后修改于: 2022-03-11 15:03:29.493000             🧑  作者: Mango
// if needed add a boolean to the array and use it
for(let i = 0; i < this.subModules.length; i++){
this.subModules[i].active = false;
}
On The component
activateClass(subModule){
subModule.active = !subModule.active;
}