0.2.1 • Published 2 years ago

ngx-pwa-install v0.2.1

Weekly downloads
40
License
-
Repository
-
Last release
2 years ago

NgxPwaInstall

Small wrapper with allows handle beforeinstallprompt event in angular way

Demo available here

Install

Install from npm

npm install ngx-pwa-install

and connect to main module to setup listeners

@Component({
    imports: [NgxPwaInstallModule.forRoot()]
})
class AppModule {}

After installed module prevents default process of BeforeInstallPromptEvent

Usage

To display custom PWA install popup wrap it with <ngx-pwa-install></ngx-pwa-install>

To proceed install request use .install() method of component

Positioning of install panel is your choice. Component does not add any css or block elements

<ngx-pwa-install #pwa>
    <div class="pwa-install-panel" (click)="pwa.install()">
       Click to install
    </div>
</ngx-pwa-install>

To import only component outside of root module import module without .forRoot()

@Component({
    imports: [NgxPwaInstallModule]
})
class FeatureModule {}
0.2.1

2 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.1

4 years ago