@angular/flex-layout#MediaObserver TypeScript Examples
The following examples show how to use
@angular/flex-layout#MediaObserver.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: network.component.ts From blockcore-hub with MIT License | 6 votes |
constructor(
private globalService: GlobalService,
private apiService: ApiService,
private readonly cd: ChangeDetectorRef,
public mediaObserver: MediaObserver,
public router: Router,
public walletService: WalletService) {
}
Example #2
Source File: network.component.ts From EXOS-Core with MIT License | 6 votes |
constructor(
private globalService: GlobalService,
private apiService: ApiService,
private readonly cd: ChangeDetectorRef,
public mediaObserver: MediaObserver,
public router: Router,
public walletService: WalletService,
public localeService: LocaleService) {
}
Example #3
Source File: matx-sidenav-helper.directive.ts From matx-angular with MIT License | 6 votes |
constructor(
private matchMediaService: MatchMediaService,
private matxSidenavHelperService: MatXSidenavHelperService,
private matSidenav: MatSidenav,
private mediaObserver: MediaObserver
) {
// Set the default value
this.isOpen = true;
this.unsubscribeAll = new Subject();
}
Example #4
Source File: media-query.service.ts From nghacks with MIT License | 5 votes |
constructor(
private _mediaObserver: MediaObserver
) {
this.activeMediaQuery = '';
this._init();
}
Example #5
Source File: features.component.ts From careydevelopmentcrm with MIT License | 5 votes |
constructor(private media: MediaObserver) {
this.mediaWatcher = this.media.media$.subscribe((mediaChange: MediaChange) => {
this.handleMediaChange(mediaChange);
})
}
Example #6
Source File: app-breakpoint.service.ts From youpez-admin with MIT License | 5 votes |
constructor(public media: MediaObserver,
private eventManager: EventManager) {
this.eventManager.addGlobalEventListener('window', 'resize', this.onResize.bind(this))
}
Example #7
Source File: matx-side-nav-toggle.directive.ts From matx-angular with MIT License | 5 votes |
constructor(
private mediaObserver: MediaObserver,
@Host() @Self() @Optional() public sideNav: MatSidenav
) {
}
Example #8
Source File: match-media.service.ts From matx-angular with MIT License | 5 votes |
constructor(
private mediaObserver: MediaObserver
) {
this.activeMediaQuery = '';
this.init();
}