Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom template #12

Open
fabianoroberto opened this issue Mar 2, 2017 · 0 comments
Open

Custom template #12

fabianoroberto opened this issue Mar 2, 2017 · 0 comments

Comments

@fabianoroberto
Copy link

Please add possibility to specify another template or using this strategy:

templateUrl: function(element, attrs) {
    // default to 'old' template
    // only use other template if passed through the 'template-url' attribute
    return attrs.templateUrl || "/angular-time-picker.tpl.html";
}

or

templateUrl: function(elem,attrs) {
    return attrs.dataTemplateUrl || '/angular-time-picker.tpl.html'
}
<wy-time-picker 
    ...
    data-template-url="contentUrl"
    ...
>
</wy-time-picker>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant