Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Use $templateCache for loading templates #168

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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