angularjsdatepickerangular-ui-bootstrap

Remove week column and button from Angular-ui bootstrap datepicker


I am using angular-ui bootstrap datepicker. Now I need to remove #(week) column and week button from datepicker. This date picker is being used in many forms of my application. I want to remove week column from all of them.

For this, I had globally configured the datepickerConfig (show-weeks) but still it is not working. Can anyone please let me know I am doing wrong with this?


Solution

  • Please, look at this example: http://plnkr.co/edit/6i4G7JkvBiWXZYlrV2GL?p=preview

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