1.17.0 • Published 6 months ago

ect-mobile-service v1.17.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

ECT Mobile Service

This library was generated with Angular CLI version 17.0.0.

Description

This is a simple service to check if the application is running on a mobile or tablet device.

Usage

Add the EctMobileService service to your Modules' or AppComponent's Providers list, then inject the service into the constructor of your class.

For example:

import { Component } from '@angular/core';

import { EctMobileService } from 'ect-mobile-service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: [ './app.component.css' ],
  providers: [ EctMobileService ]
})
export class AppComponent {
  public isMobile: boolean;

  constructor(private mobileService: EctMobileService) {
    this.isMobile = this.mobileService.isMobileDevice();
  }
}

Functions

  • isMobileDevice: Function returns true if the current device is identified as a mobile/smartphone sized device
  • isSmallScreenDeviceButNotMobile: Function returns true if the current device is identified as a tablet sized device

Dependencies

None

Cost

If you find some benefit from using this package, please consider the time it took to put this together, and why not buy me a coffee? Goodness only knows that most of us would not function without coffee. All donations very much welcomed: (https://www.buymeacoffee.com/exoduscloudtech)

Further help

To get more help on the this ECT Mobile Service, please visit (https://angular-grid.net/free/ect-mobile-service)

1.17.0

6 months ago

1.16.1

12 months ago

1.15.0

1 year ago

1.16.0

1 year ago

0.3.0

1 year ago

0.1.2

1 year ago

0.3.2

1 year ago

0.2.2

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago