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

naming a route for easy use in templates #1846

Closed
aleksandrenko opened this issue Jan 20, 2013 · 2 comments
Closed

naming a route for easy use in templates #1846

aleksandrenko opened this issue Jan 20, 2013 · 2 comments

Comments

@aleksandrenko
Copy link

It would be great to be able to set 'cache' for a template in a route. Easily and fast :)

.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl',
name: index
})

HTML:
<a href="{{ url.index }}">home link</a>

@pkozlowski-opensource
Copy link
Member

@aleksandrenko, is this the same as #1845?

In any case I'm not sure what you mean, to be honest... What is the use case that you are trying to cover here? Templates are cached by default. Are you after using a specific cache for templates defined on a route level? If so, what would be the purpose?

@pkozlowski-opensource
Copy link
Member

@aleksandrenko, I haven't heard from you and honestly, I've got not idea what you are asking in this issue... Going to close this one for now, please re-open when you've got more info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants