Skip to content

Use $templateCache for loading templates #168

Closed
@eekboom

Description

@eekboom

We tried to use "ng-repeat" inside a tooltip's template.
That did not work and we needed a while to find out that the template specified via "tooltip-template" seems to not get compiled.
When we switched to "tooltip-template-url", we at first got 404s when the app tried to load that single template. Our build system uses grunt-angular-templates to put all template in a single js file that pre-populates the template cache.
Only after we copied all "*-tooltip-template.html" to the output build did it started to work (including the "ng-repeat").

So please check if any templateUrl is present in the cache already and only load it if it isn't found there (and then fill the cache after loading).

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