miickel/gulp-angular-templatecache

Question: Is it possible to make template urls relative?

Open

#153 创建于 2018年3月22日

在 GitHub 查看
 (8 评论) (2 反应) (0 负责人)JavaScript (97 fork)batch import
help wanted

仓库指标

Star
 (533 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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

贡献者指南