File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
libs/ngx-breakpoint-observer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,12 @@ npm install ngx-breakpoint-observer
15
15
``` ts
16
16
import {
17
17
breakpointsTailwind ,
18
- observeBreakpoints ,
18
+ injectBreakpoints ,
19
19
} from ' ngx-breakpoint-observer' ;
20
20
21
21
@Component ({})
22
22
export class AppComponent {
23
- breakpoints = observeBreakpoints (breakpointsTailwind );
23
+ breakpoints = injectBreakpoints (breakpointsTailwind );
24
24
25
25
reactiveStuff = signal <keyof typeof breakpointsTailwind >(' sm' );
26
26
isGreaterThanSignal = this .breakpoints .greaterOrEqual (this .reactiveStuff ); // use signal without calling it!
@@ -33,11 +33,11 @@ export class AppComponent {
33
33
```
34
34
35
35
``` ts
36
- import { observeBreakpoints } from ' ngx-breakpoint-observer' ;
36
+ import { injectBreakpoints } from ' ngx-breakpoint-observer' ;
37
37
38
38
@Component ({})
39
39
export class AppComponent {
40
- breakpoints = observeBreakpoints ({
40
+ breakpoints = injectBreakpoints ({
41
41
mobile: 0 , // optional
42
42
tablet: 640 ,
43
43
laptop: 1024 ,
You can’t perform that action at this time.
0 commit comments