lundi 1 décembre 2014

Angular $templatecache name conflicts


We have a single page application structure with multiple html templates. Multiple developers are pushing their own submodules to app and during bundling process (webpack) we are pushing all these templates to $templatecache.


Inevitably some of the apps partials happen to have same names (dashboard, nav, section etc) and angular is overwriting the templates.


Is there a way to avoid name conflicts during angular template caching process? Or is there any gulp-grunt etc plugin to create unique template names and match-replace them in the htmls?





Aucun commentaire:

Enregistrer un commentaire