You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to post such a simple question, but I want to make sure I'm writing my statement correctly. What I'm trying to do is append a timestamp to each .html file being put into the template cache, to try to cachebust it on the fly since our templateCache task is being watched for changes and recompiles as we edit HTML files.
This is how I'm approaching the statement (I'm using gulp-util so that's why the module name looks funny:
Was having the same issue, but updating my version (from 1.5 to 1.7) solved this for me. Looks like transformUrl was not introduced until April this year.
Sorry to post such a simple question, but I want to make sure I'm writing my statement correctly. What I'm trying to do is append a timestamp to each .html file being put into the template cache, to try to cachebust it on the fly since our
templateCache
task is being watched for changes and recompiles as we edit HTML files.This is how I'm approaching the statement (I'm using
gulp-util
so that's why the module name looks funny:.pipe($.angularTemplatecache('templates.js', { transformUrl: function (url) { return url + '?' + date.toJSON(); } }))
Along with the full task:
The text was updated successfully, but these errors were encountered: