I see many answers about using ngFor when I search for this, but I understand ngFor. I\'m asking about the angular.forEach() constructor used in my Angular 1 contr
angular.forEach()
you can try typescript's For :
For
selectChildren(data , $event){ let parentChecked : boolean = data.checked; for(let o of this.hierarchicalData){ for(let child of o){ child.checked = parentChecked; } } }