return getArrayFromTree(step_to, now_arr[first]);
<div>
<app-component style="display: flex"><!-- Внутри флекс элементы --></app-component>
</div>
function doSmth(obj) {
console.log(obj.id)
}
function isRightObj(obj) {
return obj.id === 6
}
function reqursive(obj) {
if ( isRightObj(obj) ) {
doSmth(obj)
}
const childs = obj.childGroups
if (childs && Array.isArray(childs)) {
childs.forEach(reqursive)
}
}
reqursive(obj)
<md-input-container class="example-full-width">
<input mdInput placeholder="Company (disabled)" disabled value="Google">
<md-hint>Hint!</md-hint>
</md-input-container>