This repository was archived by the owner on Jan 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11The injectable ** ObservableMedia** service will provide mediaQuery ** activations** notifications for all
22[ registered BreakPoints] ( https://github.com/angular/flex-layout/wiki/Custom-Breakpoints ) .
33
4- This service is essential an Observable that exposes both features to subscribe to mediaQuery
4+ This service is essentially an Observable that exposes both features to subscribe to mediaQuery
55changes and a validator method ` .isActive() ` to test if a mediaQuery (or alias) is
66currently active.
77
@@ -45,7 +45,7 @@ import {MediaChange, ObservableMedia} from '@angular/flex-layout';
4545})
4646export class MyDemo implements OnDestroy {
4747 watcher: Subscription ;
48- activeMediaQuery = " " ;
48+ activeMediaQuery = ' ' ;
4949
5050 constructor (media : ObservableMedia ) {
5151 this .watcher = media .subscribe ((change : MediaChange ) => {
@@ -94,7 +94,7 @@ import {Component} from '@angular/core';
9494import {Subscription } from ' rxjs/Subscription' ;
9595import {filter } from ' rxjs/operators/filter' ;
9696
97- import {MediaChange , ObservableMedia } from " @angular/flex-layout" ;
97+ import {MediaChange , ObservableMedia } from ' @angular/flex-layout' ;
9898
9999@Component ({
100100 selector : ' responsive-component'
You can’t perform that action at this time.
0 commit comments