Skip to content

Instantly share code, notes, and snippets.

@92arpitgoyal
Created October 29, 2015 04:42
Show Gist options
  • Select an option

  • Save 92arpitgoyal/e934c15289402e8f7e8d to your computer and use it in GitHub Desktop.

Select an option

Save 92arpitgoyal/e934c15289402e8f7e8d to your computer and use it in GitHub Desktop.
myApp.config(['$provide', Decorate]);
function Decorate($provide) {
$provide.decorator('daypickerDirective', function ($delegate) {
var directive = $delegate[0];
directive.templateUrl = "custom-template/datepicker/day.html";
return $delegate;
});
$provide.decorator('monthpickerDirective', function ($delegate) {
var directive = $delegate[0];
directive.templateUrl = "custom-template/datepicker/month.html";
return $delegate;
});
$provide.decorator('yearpickerDirective', function ($delegate) {
var directive = $delegate[0];
directive.templateUrl = "custom-template/datepicker/year.html";
return $delegate;
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment