SHARE
TWEET

Untitled

a guest Sep 17th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mdq: MediaQueryList;
  2.   mediaQueryListener:()=>void;
  3.  
  4.   constructor( changeDetectorRef: ChangeDetectorRef, media: MediaMatcher ) {
  5.     this.mdq = media.matchMedia('(max-width: 992px)');
  6.     this.mediaQueryListener = () => changeDetectorRef.detectChanges();
  7.     this.mdq.addListener(this.mediaQueryListener);
  8.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top