Calls onChange whenever the viewport crosses the phone breakpoint (rotation, a resized window, DevTools device mode). Returns the function that stops watching; always returns one, even where there is no matchMedia. Call it from ngOnDestroy.
onChange
matchMedia
ngOnDestroy
Calls
onChangewhenever the viewport crosses the phone breakpoint (rotation, a resized window, DevTools device mode). Returns the function that stops watching; always returns one, even where there is nomatchMedia. Call it fromngOnDestroy.