Support for `template` not just `templateUrl`
See original GitHub issueSteps to reproduce
N/A
Expected behaviour
Would be nice to have a new rz-slider-tpl directive attribute instead/along with the current rz-slider-tpl-url. That would help folks using webpack to require their custom templates upfront as usual, without the need to lube up $templateCache upfront.
So with something like this in a controller:
scope.tplt = require('./my_custom_slider_template.html');
… markup would look like this:
<rzslider rz-slider-tpl="{{ tplt }}" rz-slider-model="slider.value" rz-slider-options="slider.options">/rzslider>
Actual behaviour
Only rz-slider-tpl-url is supported.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
angular - templateUrl does not work for me - Stack Overflow
As of my knowledge, The HTML template Url or the Url for the style-sheet needs to be given in absolute path. I tried...
Read more >adding support for templateUrl as an optional #6424 - GitHub
In my view in is a bit opinionated to have only template but not templateUrl . I wrote many components using templateUrl and...
Read more >Difference between Template and TemplateURL in AngularJS
The major two important properties are template & template URL. The are various Method to create Templates in Angular. The template is a ......
Read more >Why Vue.js doesn't support templateURL
In Angular, templateURL or ng-include allows the user to dynamically load a remote template file at runtime. This seems pretty convenient as a ......
Read more >What Are templateUrls and styleUrls in Angular? - MakeUseOf
What Is the template and templateUrl in Angular? · Open the about-page.component.ts file. · If you want to include a multi-lined template, you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Same case as @kevin-king here. I am using a temporary script tag with the slider template as shown in this example: https://jsfiddle.net/meu7ap6n/
Closing this for clean up. Please comment if you still need this.