https://github.com/darekf77/bs4-breakpoint
Detect bootstrap 4 breakpoints in angular 2+
https://github.com/darekf77/bs4-breakpoint
angular bootstrap4 breakpoints breakpoints-change detect-breakpoints library
Last synced: about 1 year ago
JSON representation
Detect bootstrap 4 breakpoints in angular 2+
- Host: GitHub
- URL: https://github.com/darekf77/bs4-breakpoint
- Owner: darekf77
- Created: 2016-08-18T13:42:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-03T19:34:36.000Z (over 1 year ago)
- Last Synced: 2025-03-18T16:58:54.530Z (over 1 year ago)
- Topics: angular, bootstrap4, breakpoints, breakpoints-change, detect-breakpoints, library
- Language: HTML
- Homepage: https://darekf77.github.io/bs4-breakpoint/
- Size: 8.05 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## bs4-breakpoint ##
Detect breakpoint in bootstrap 4:
How to use it
-------------
install it
```
npm i bs4-breakpoint
```
**import it**
```ts
@NgModule({
imports: [Bs4BreakpointModule],
})
class { ... }
```
Create function insde your component class to listen changes
```ts
@Component(...)
class ExampleComponent {
newBreakpoint(e: Breakpoint) {
// breakpoint detected
}
}
```
put **bs4-breakpoint** tag in component template:
```html
```