question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for `template` not just `templateUrl`

See original GitHub issue

Steps 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
flarandacommented, Sep 28, 2016

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/

0reactions
ValentinHcommented, Feb 23, 2019

Closing this for clean up. Please comment if you still need this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found