ngx-mq 2.11.0 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,18 +61,12 @@ npm install ngx-mq@2
|
|
|
61
61
|
|
|
62
62
|
### Configuration
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
Create a custom breakpoint map or use one of the built-in presets (e.g. `provideTailwindBreakpoints()`).
|
|
65
65
|
|
|
66
66
|
```ts
|
|
67
67
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
68
68
|
import { AppComponent } from './app/app.component';
|
|
69
|
-
import {
|
|
70
|
-
provideBreakpoints,
|
|
71
|
-
provideTailwindBreakpoints,
|
|
72
|
-
provideBootstrapBreakpoints,
|
|
73
|
-
provideMaterialBreakpoints,
|
|
74
|
-
provideBreakpointEpsilon,
|
|
75
|
-
} from 'ngx-mq';
|
|
69
|
+
import { provideBreakpoints } from 'ngx-mq';
|
|
76
70
|
|
|
77
71
|
bootstrapApplication(AppComponent, {
|
|
78
72
|
providers: [
|
|
@@ -82,14 +76,6 @@ bootstrapApplication(AppComponent, {
|
|
|
82
76
|
md: 768,
|
|
83
77
|
lg: 1024,
|
|
84
78
|
}),
|
|
85
|
-
|
|
86
|
-
// Or use one of the built-in presets
|
|
87
|
-
// provideTailwindBreakpoints(),
|
|
88
|
-
// provideBootstrapBreakpoints(),
|
|
89
|
-
// provideMaterialBreakpoints(),
|
|
90
|
-
|
|
91
|
-
// Configure epsilon if needed (default: 0.02)
|
|
92
|
-
provideBreakpointEpsilon(0.02),
|
|
93
79
|
],
|
|
94
80
|
});
|
|
95
81
|
```
|
|
@@ -100,8 +86,6 @@ bootstrapApplication(AppComponent, {
|
|
|
100
86
|
- **Bootstrap** → `sm: 576, md: 768, lg: 992, xl: 1200, xxl: 1400`
|
|
101
87
|
- **Material** → `sm: 600, md: 905, lg: 1240, xl: 1440`
|
|
102
88
|
|
|
103
|
-
> **Note**: Epsilon is a small value subtracted from upper bounds to prevent adjacent ranges from overlapping.
|
|
104
|
-
|
|
105
89
|
### BP-related utilities
|
|
106
90
|
|
|
107
91
|
| Function | Parameters | Returns | Description |
|