@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));
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    4
  • 1.0.0
    1
  • 0.0.2
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i @addapptables/responsive

Weekly Downloads

8

Version

2.0.0

License

MIT

Unpacked Size

129 kB

Total Files

39

Last publish

Collaborators

  • teogl