Support template URLs
All of the template configuration options currently expect a code fragment to be provided. Relevant configuration values should be available for specifying template URLs that load the HTML fragment from a file.
e.g., rowTemplateUrl: 'partials/rowTemplate.html'
Relevant configuration options, judging by the APi documentation would be:
Grid Options
- aggregateTemplateUrl
- checkboxCellTemplateUrl
- checkboxHeaderTemplateUrl
- rowTemplateUrl
ColumnDefs Options
- cellTemplateUrl
- editableCellTemplateUrl
- headerCellTemplateUrl
It turns out a template URL is supported for these properties but it expects the value in the same property as where the code fragment is provided. This does not conform with the style of Angular directives. Developers familiar with directives will expect the option to specify a template URL to be in an independent property, not an overload to the code fragment property.
Please fix this - use xxxUrl, and have that code use $templateCache.
+1. The default header cell template is chunky, to say the least, so if you need to make a change it ends up being a pretty big block of HTML sitting in your file.
:+1:
This will be the case in 3.0. In its beta form it currently supports template urls, $templateCache ids, text strings, and promises.
Thank you!