miickel/gulp-angular-templatecache

Question: Is it possible to make template urls relative?

Open

#153 aberto em 22 de mar. de 2018

Ver no GitHub
 (8 comments) (2 reactions) (0 assignees)JavaScript (97 forks)batch import
help wanted

Métricas do repositório

Stars
 (533 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

It's not clear to me from the docs how to do this (other than a custom function for transformUrl). I was very surprised this isn't the default, as that is the default for the grunt version of this plugin (I'm in the process of migrating some code from grunt to gulp).

Specifically, I would've expected something like:

$templateCache.put('template/foo.html', 'content')

but instead I'm getting

$templateCache.put('/template/foo.html', 'content')

Guia do colaborador