Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

feat(datepicker): allow custom templates #4157

Conversation

wesleycho
Copy link
Contributor

  • Allow custom templates for datepicker and popup
  • Expose controller to template

- Allow custom templates for datepicker and popup
- Expose controller to template
@Foxandxss
Copy link
Contributor

Good for me, but when we allow custom templates to be used on directives, we need to double check that pulling custom templates from remote (a different file in a plunker would work) doesn't break it. Angular won't wait for a directive (and its children) to be fully there in the DOM so animations (if any) could break.

scope: {
datepickerMode: '=?',
dateDisabled: '&',
customClass: '&',
shortcutPropagation: '&?'
},
require: ['datepicker', '?^ngModel'],
require: ['datepicker', '^ngModel'],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should note, this change would cause #1913 to be resolved.

@wesleycho
Copy link
Contributor Author

I think that is fine - they should be bundling it in $templateCache.

@wesleycho wesleycho force-pushed the feat/datepicker-custom-templates branch from 48e8839 to bf83761 Compare August 8, 2015 19:37
@wesleycho wesleycho closed this in e04b06d Aug 8, 2015
@wesleycho wesleycho deleted the feat/datepicker-custom-templates branch August 8, 2015 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants