This package has been deprecated

Author message:

AOT problem

ngx-window-resize
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

ngx-window-resize

An Angular simple window resize sensor.

Build Status npm version

Installation

  npm i ngx-window-resize

Usage

...
import { WindowSensor } from "ngx-window-resize";
...

@Component({
  selector: 'cmp-one'
})
@WindowSensor()
export class Component1 {

  constructor() {}

  onWindowResize(event: any) {
    ...
  }
}
...
import { WindowSensor } from "ngx-window-resize";
...
@Component({
  selector: 'cmp-two'
})
@WindowSensor({ resize: 'onResize' })
export class Component2 {

  ...

  onResize(event: any) {
    ...
  }
}

Options

Option Description Default Value
resize method that is called on window resize onWindowResize

Note: This project - ngx-window-sensor have two other sensor.(load & orientation)


Thank You.
INDNJC,
Kota Wisata, May 2019.

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-window-resize

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

7.88 kB

Total Files

9

Last publish

Collaborators

  • yohaneslumentut