WearyMonkey / ngtemplate-loader

Include AngularJS templates in the Webpack bundle and preload the template cache.
MIT License
238 stars 78 forks source link

Unique Template Modules Per Entry Point? #51

Closed bmbell closed 7 years ago

bmbell commented 8 years ago

Say I have 3 entry points:

config.entry = { "a": [root("modules/a")], "b": [root("modules/b")], "c": [root("modules/c")] };

I'd like to be able to create template modules for each of these:

// angular.module('aTemplates').run(['$templateCache', ... // angular.module('bTemplates').run(['$templateCache', ... // angular.module('cTemplates').run(['$templateCache', ...

Is this possible?

WearyMonkey commented 7 years ago

Can now be achieved using module parameter interpolation. https://github.com/WearyMonkey/ngtemplate-loader/commit/cd04b0b16d5e30e030e51b5f9f212552d086c975