angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.29k stars 6.73k forks source link

Datepicker month template #6446

Open notom opened 7 years ago

notom commented 7 years ago

I'm trying to override the month template, but with no luck. The script loads the default template whatever I try. First I put the datepicker-template-url="js/templates/datepicker.html" attribute inside the input. That loads the template correctly. But I want to change the month.html template. So I tried with the: <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker" template-url="/js/templates/month.html"></div> inside the datepicker.html template. I also tried to just put my month.html file in the same dir as the datepicker.html custom template. But the result was the same. I can see the file is been loaded in the console of Firefox, but the calendar is the same (the default one) and not the one I have in the template.

My Angular version is 1.5.8 UIBS: 1.3.3 Bootstrap: 3.3.6

Thanks!

janetcita123 commented 6 years ago

Yo tengo un problema parecido con bootstrap. En mi caso abro un modal encima de mi pagina que contiene datepickers solo a la primera funciona si cierro el modal y lo vuelvo a abrir ya no funciona :(