Created AbstractComponentLoaderComponent to load components dynamically

This commit is contained in:
Alexandre Vryghem
2023-06-10 15:12:22 +02:00
parent 404ccd9b0e
commit 2327513dd0
4 changed files with 132 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { Directive, ViewContainerRef } from '@angular/core';
/**
* Directive used as a hook to know where to inject the dynamic loaded component
*/
@Directive({
selector: '[dsDynamicComponentLoader]'
})
export class DynamicComponentLoaderDirective {
constructor(
public viewContainerRef: ViewContainerRef,
) {
}
}