passing data to created component, removed obsolete files

This commit is contained in:
tomek.hanaj
2024-12-16 11:52:16 +01:00
parent 734defdfb7
commit eff08c2c71
3 changed files with 9 additions and 6 deletions
@@ -1,3 +0,0 @@
div {
background-color: inherit;
}
@@ -51,6 +51,15 @@ export class ScreenCloudComponent implements OnInit {
this.screenComponent = { type: this.screenId };
const componentType = this.screenRenderingService.resolveComponentType(this.screenComponent);
this.componentRef = this.container.createComponent(componentType);
if (this.taskId) {
this.componentRef.setInput('taskId', this.taskId);
}
if (this.appName) {
this.componentRef.setInput('appName', this.appName);
}
if (this.screenId) {
this.componentRef.setInput('screenId', this.screenId);
}
}
}
}