Globally configuring Angular directives

后端 未结 2 774
无人共我
无人共我 2021-01-04 00:28

Some of the Angular UI Bootstrap directives, such as datepicker, have configuration instructions like this: \"All settings can be provided as attributes in the

2条回答
  •  走了就别回头了
    2021-01-04 00:47

    Something like this:

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

提交回复
热议问题