Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 390 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 390 Bytes

Dynamic Component Loader

This is a service that dynamically adds a component to the DOM.


Uses

@angular/cdk

npm install --save @angular/cdk

Usage

constructor(private loaderservice: LoaderService){  }

attach() {
    this.loaderservice.create(COMPONENT);
    this.loaderservice.reveal();
}

detach(){
    this.loaderservice.hide();
}