fix(icon): reverse for loop when removing child nodes from mat-icon (#12078)
fix(icon): reverse for loop when removing child nodes from mat-icon (#12078)

When mat-icon element has more than one child node (like when mat-badge is used) then child nodes should be removed in the reversed order otherwise you will attempt to get node by index which is not correct any more since you've deleted some nodes already in the previous iterations and it will cause an error.
angular/components,angular/components,angular/components,mmalerba/material2,Jefiozie/material2,josephperrott/material2,Jefiozie/material2,Jefiozie/material2,mmalerba/material2,DevVersion/material2,jelbourn/material2,andrewseguin/material2,amcdnl/material2,josephperrott/material2,Jefiozie/material2,DevVersion/material2,josephperrott/material2,DevVersion/material2,mmalerba/material2,angular/components,crisbeto/material2,jelbourn/material2,josephperrott/material2,amcdnl/material2,DevVersion/material2,crisbeto/material2,jelbourn/material2,crisbeto/material2,mmalerba/material2,andrewseguin/material2,amcdnl/material2,andrewseguin/material2,amcdnl/material2,andrewseguin/material2,Jefiozie/material2,amcdnl/material2,DevVersion/material2,crisbeto/material2,mmalerba/material2,jelbourn/material2,josephperrott/material2,andrewseguin/material2,jelbourn/material2