UNPKG

ng2-responsive

Version:

Superset of RESPONSIVE DIRECTIVES to show or hide items according to the size of the device screen and another features in Angular 2

17 lines (16 loc) 580 B
import { DoCheck, ElementRef, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core'; import { ResponsiveState } from '../config/index'; export declare class ResponsiveWindow implements OnInit, OnDestroy, DoCheck { private _responsiveState; private el; private cd; private _noRepeat; private element; name: string; constructor(_responsiveState: ResponsiveState, el: ElementRef, cd: ChangeDetectorRef); ngOnInit(): void; ngDoCheck(): void; ngOnDestroy(): void; getWidth(): number; private _ifValueChanged(oldValue, newValue); }