Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

(Re)cache used icons like "md-tabs-arrow'" after $templateCache.removeAll() #6531

Closed
dennislaupman opened this issue Jan 4, 2016 · 3 comments
Assignees
Labels
in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs P1: urgent Urgent issues that should be addressed in the next minor or patch release.
Milestone

Comments

@dennislaupman
Copy link

Hi guys,

For my app we need to delete the entire templateCache after creating or updating some GUI forms. The problem is the MdIconProvider with function "preloadIcons" cached some icons in the templatecache.

After $templateCache.removeAll() the cached icons are gone ;)

Is there an option to rerun this "preloadIcons" function on runtime (in a controler)?

Would be nice!

Grtz Dennis

@ThomasBurleson
Copy link
Contributor

Refactor into reusable function with API access.

Community contribution encouraged.

@ThomasBurleson ThomasBurleson added P1: urgent Urgent issues that should be addressed in the next minor or patch release. and removed Q2 labels Jan 13, 2016
@ThomasBurleson ThomasBurleson modified the milestone: Backlog Jan 13, 2016
@ThomasBurleson ThomasBurleson modified the milestones: Backlog, 1.0.4, 1.0.5 Jan 25, 2016
@programmist programmist added in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs - Breaking Change and removed - Breaking Change labels Feb 1, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.0.5, 1.0.6 Feb 4, 2016
ThomasBurleson pushed a commit that referenced this issue Mar 17, 2016
@programmist
Copy link
Contributor

Quick update: Now that data URLs are possible with md-icon, that feature can be leveraged for our internal icons, rather $templateCache.

ThomasBurleson pushed a commit that referenced this issue Apr 1, 2016
ThomasBurleson pushed a commit that referenced this issue Apr 1, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.0.6, 1.0.8 Apr 4, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.0.8, 1.1.1, Backlog, 1.1.0 Apr 20, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.0, Deprecated May 26, 2016
@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our ‘Surge Focus on Material 2' efforts.
For details, see our forum posting @ http://bit.ly/1UhZyWs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs P1: urgent Urgent issues that should be addressed in the next minor or patch release.
Projects
None yet
Development

No branches or pull requests

4 participants