v1.0.1
What's Changed
- Full rewrite
- Relies on
matchMediaQueries
change
events only, noresize
- Dropped support for browsers older > 10 years
- Proper detection of screen size changes when printing, and forced synchronization of AngularJS
- Now automatically loads the service and sets
$matchMedia
in$rootScope
, accessible to all controllers (which is what makes most sense) $matchMedia
contains the below properties:size
:"xs|sm|md|lg"
, current size of the screenretina
:true|false
, whether we're on high-DPI displayprint
:true|false
, whether we're printingdark
:true|false
, Whether we're in dark mode
- Changed license to MIT
- Removed old matchMedia
Full Changelog: v0.8.0...v1.0.1