a4-overlay
Handle overlay for the entire screen
Last updated 6 months ago by cccheng .
MIT · Original npm · Tarball · package.json
$ cnpm install a4-overlay 
SYNC missed versions from official npm registry.

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

Current Tags

  • 8.0.0                                ...           latest (6 months ago)

15 Versions

  • 8.0.0                                ...           6 months ago
  • 7.0.0                                ...           a year ago
  • 6.0.3                                ...           2 years ago
  • 6.0.2                                ...           2 years ago
  • 5.0.7                                ...           2 years ago
  • 5.0.6                                ...           2 years ago
  • 5.0.5                                ...           2 years ago
  • 5.0.4                                ...           2 years ago
  • 5.0.3                                ...           2 years ago
  • 5.0.2                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 22
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |