Fixed getComponent not triggering again when it's input values change by creating inputNamesDependentForComponent

Also simplified the way @Input() values are passed to their child component and how ngOnChanges is called by using setInput instead
This commit is contained in:
Alexandre Vryghem
2023-12-10 22:19:57 +01:00
parent 26e0bc81c7
commit 14d42b0d93
5 changed files with 71 additions and 36 deletions

View File

@@ -24,8 +24,8 @@ export class MetadataRepresentationLoaderComponent extends AbstractComponentLoad
*/
@Input() mdRepresentation: MetadataRepresentation;
protected inAndOutputNames: (keyof this)[] = [
...this.inAndOutputNames,
protected inputNames: (keyof this & string)[] = [
...this.inputNames,
'mdRepresentation',
];