ng-device-service

1.0.1 • Public • Published

README

Angular 4 Service for determining mobile device type.

  • Written in TypeScript

How do I get set up?

  • Import the module:
    • import { DeviceModule } from 'ng-device-service';
  • Add it as an import:
    • imports: [ DeviceModule ]
  • Inject it in the constructor of your component:
    • constructor(private deviceService: DeviceService) {}
  • Call the methods:
    • this.deviceService.isiIOS();

Methods

  • isiOS() -
  • isAndroid() -
  • isBlackberry() -
  • isWindowsPhone() -
  • isMobile() -

Contribution guidelines

  • Code
  • Write tests
  • Pull Request

Improvement ideas, general non-sense...

Package Sidebar

Install

npm i ng-device-service

Weekly Downloads

4

Version

1.0.1

License

ISC

Last publish

Collaborators

  • bwellons