Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-create module #40

Open
davidstellini opened this issue May 28, 2016 · 1 comment
Open

Auto-create module #40

davidstellini opened this issue May 28, 2016 · 1 comment

Comments

@davidstellini
Copy link

davidstellini commented May 28, 2016

My configuration is as follows:

Entry points to include all templates:
templates: glob.sync("./src/app/**/*.tpl.html"),

Loader to add templates to module:

{
        test: /\.tpl\.html$/,
        loader: 'ngtemplate?module=myapp.templates&relativeTo=' + (path.resolve(__dirname, '/src/app')) + '/!html'
       },

Load order:

Vendor, Templates, App.

This is because the app 'requires' the templates module. I need a way to ask ngtemplate to create the myapp.templates module for me. Is this possible?

@e-cloud
Copy link

e-cloud commented Jun 14, 2016

your have to create the module manually as ngtemplate-loader is just use the given module to add templateCache. create it before you import the template file bundle.

if i understand your problem correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants