Skip to content

Support for template not just templateUrl #409

@mateatslc

Description

@mateatslc

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions