Globally configuring Angular directives Globally configuring Angular directives angularjs angularjs

Globally configuring Angular directives


Something like this:

angular.module('myModule', ['ui.bootstrap']).config(['uibDatepickerConfig', function(uibDatepickerConfig) {    uibDatepickerConfig.showWeeks = false;}]);


The reference documentation for using config is in the Angular.Module type under the config method. However, that documentation doesn't tell you how config works. For an overview, look in the Developer Guide under Provider Recipe.