Created
October 29, 2015 04:42
-
-
Save 92arpitgoyal/e934c15289402e8f7e8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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