How to use the ngx-device-detector.DeviceDetectorModule function in ngx-device-detector

To help you get started, we’ve selected a few ngx-device-detector examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KoderLabs / ngx-device-detector / .playground / index.js View on Github external
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            bootstrap: [AppComponent],
            declarations: [AppComponent, KeysPipe],
            imports: [platform_browser_1.BrowserModule, ngx_device_detector_1.DeviceDetectorModule.forRoot()]
        })
    ], AppModule);
    return AppModule;
}());
platform_browser_dynamic_1.platformBrowserDynamic().bootstrapModule(AppModule);

ngx-device-detector

<p align="center"> <img src="https://raw.githubusercontent.com/AhsanAyaz/ngx-device-detector/master/assets/logo.svg" width="200"> </p>

MIT
Latest version published 14 days ago

Package Health Score

79 / 100
Full package analysis