Get children like dom traversal


If I have a *ngFor that builds out questions and answers with a switch widget and I want to programmatically check the values of the switches, is there a way to iterate through and find those elements and get the values? The parent element would be a grid. I would want to get the values of each switch to check it against the correct answers in an array of objects with ids and values.


Use methods like getChildrenCount / getChildIndex / eachChild on the layout to access it’s children.