jacopotarantino / angular-match-media

Angular module to use Bootstrap3 media queries in your angular controllers.
https://jack.ofspades.com/angular-matchmedia-module/
Other
135 stars 37 forks source link

screenSize.rules customization on config() step #21

Closed js-padavan closed 9 years ago

js-padavan commented 9 years ago

It would be great if 'screenSize' service would be implemented as provider with methods for customization 'rules' object, thus it would be very convenient to define all custom rules on the app configuration step

jacopotarantino commented 9 years ago

While it's not currently possible to do this at the global level with a provider, you can set custom rules on any given instance of screenSize. See a demo here. I'm going to close this as resolved but feel free to re-open or submit a PR if you'd still like it done with a provider