mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 02:54:13 +00:00
Created AbstractComponentLoaderComponent to load components dynamically
This commit is contained in:
@@ -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,
|
||||
) {
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user