<div class="wrapp" *ngFor='let x of getData(TaskDesk, PanelControl)'>
<mat-checkbox>
{{x.translate}}
</mat-checkbox>
</div>
getData(obj, panel) {
let res = [];
obj.map(o => {
let fPan = panel.find(f => f.action === o.action);
if (fPan) {
res.push({action: fPan.action, translate: fPan.translate});
}
})
return res;
}