@addapptables/responsive
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ADDAPPTABLES Reponsive

Utility for reponsive explorer.

Getting Started

To get started, lets install the package thru npm:

Choose the version corresponding to your Angular version:

Angular @addapptables/responsive
8 2.x
7 1.x
npm i @addapptables/responsive --S

Install peer dependencies

npm i
@addapptables/ngrx-actions
@ngrx/store --S

How to use

Addapptables reponsive depends on ngrx

import { selectAllScreen } from '@addapptables/responsive';

export class MyService {
  constructor(private readonly _store: Store<any>) {}

  screen(){
      this._store.pipe(
            select(selectAllScreen),
            map(x => x.xs || x.sm) // mobile,
            distinctUntilChanged(),
            shareReplay()
      ).subscribe(isMobile => console.log(isMobile));
  }
}

Package Sidebar

Install

npm i @addapptables/responsive

Weekly Downloads

7

Version

2.0.0

License

MIT

Unpacked Size

129 kB

Total Files

39

Last publish

Collaborators

  • teogl