npx-breakpoint-observer
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

npx-breakpoint-observer

How to use it:

@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();
  }
}

Package Sidebar

Install

npm i npx-breakpoint-observer

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

30.8 kB

Total Files

14

Last publish

Collaborators

  • diegopagini7