@Component({
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.scss"],
})
export class AppComponent implements OnInit {
isMobile$: Observable<boolean>;
constructor(
private readonly _breakpointService: NpxBreakpointObserverService
) {}
ngOnInit(): void {
this.isMobile$ = this._breakpointService.isMobile();
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Angular library to get and subscribe to the breakpoints changes
diegopagini/npx-breakpoint-observer_Angular
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Angular library to get and subscribe to the breakpoints changes