castillo-io / angular-css

CSS on-demand for AngularJS [Looking for New Maintainers]
http://castillo-io.github.io/angular-css/#/
MIT License
470 stars 86 forks source link

Debug mode #47

Closed graundas closed 8 years ago

graundas commented 8 years ago

Previous $logProvider.debugEnabled(false); setting has affected all agnular modules, because the whole angular application works as a singleton. This commit solves that problem and allows to turn on or off debug logging using config. Example:

var app = angular.module('app', ['door3.css']).config(['$cssProvider', function($cssProvider){ $cssProvider.debugMode(true or false); }])

alexcastillo commented 8 years ago

Fixed in v1.0.8