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()
In Typescript use the For Each like below.
selectChildren(data, $event) { let parentChecked = data.checked; for(var obj in this.hierarchicalData) { for (var childObj in obj ) { value.checked = parentChecked; } } }