9.0.0 • Published 4 years ago

a4-overlay v9.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

a4-overlay

Angular 7 Overlay

How-To

Install

npm install a4-overlay

app.module.ts

  1. Add OverlayModule to imports of the app.module.ts.
...
import { OverlayModule } from 'a4-overlay';
...

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    ...,
    OverlayModule,
    ...
  ],
  ...
})

app.component.ts

  1. Add viewContainerRef: ViewContainerRef to the constructor of app.component.ts.
...
import { ViewContainerRef } from '@angular/core';
...

constructor(private viewContainerRef: ViewContainerRef) { }

your.component.ts

  1. Add overlayService: OverlayService to the constructor of your component.
constructor(private overlayService: OverlayService) { }
  1. Invoking the overlay mask can be done by using the service as shown below.
this.overlayService.show(); // to show an overlay over the page
this.overlayService.hide(); // to hide the overlay
9.0.0

4 years ago

8.0.0

5 years ago

7.0.0

6 years ago

6.0.3

6 years ago

6.0.2

6 years ago

6.0.1

6 years ago

5.0.7

6 years ago

5.0.6

6 years ago

5.0.5

6 years ago

5.0.4

6 years ago

5.0.3

6 years ago

5.0.2

7 years ago

5.0.1

7 years ago

5.0.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago