@@ -247,7 +247,9 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
247
247
return {
248
248
restrict : 'EA' ,
249
249
replace : true ,
250
- templateUrl : attrs . templateUrl || 'template/datepicker/day.html' ,
250
+ templateUrl : function ( element , attrs ) {
251
+ return attrs . templateUrl || 'template/datepicker/day.html' ;
252
+ } ,
251
253
require : '^datepicker' ,
252
254
link : function ( scope , element , attrs , ctrl ) {
253
255
scope . showWeeks = ctrl . showWeeks ;
@@ -359,7 +361,9 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
359
361
return {
360
362
restrict : 'EA' ,
361
363
replace : true ,
362
- templateUrl : attrs . templateUrl || 'template/datepicker/month.html' ,
364
+ templateUrl : function ( element , attrs ) {
365
+ return attrs . templateUrl || 'template/datepicker/month.html' ;
366
+ } ,
363
367
require : '^datepicker' ,
364
368
link : function ( scope , element , attrs , ctrl ) {
365
369
ctrl . step = { years : 1 } ;
@@ -417,7 +421,9 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
417
421
return {
418
422
restrict : 'EA' ,
419
423
replace : true ,
420
- templateUrl : attrs . templateUrl || 'template/datepicker/year.html' ,
424
+ templateUrl : function ( element , attrs ) {
425
+ return attrs . templateUrl || 'template/datepicker/year.html' ;
426
+ } ,
421
427
require : '^datepicker' ,
422
428
link : function ( scope , element , attrs , ctrl ) {
423
429
var range = ctrl . yearRange ;
0 commit comments