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

will it support Modules? #12

Open
mukuljp opened this issue Nov 4, 2016 · 1 comment
Open

will it support Modules? #12

mukuljp opened this issue Nov 4, 2016 · 1 comment

Comments

@mukuljp
Copy link

mukuljp commented Nov 4, 2016

can we use modulename like in ngHtml2JsPreprocessor? So that we can load that module in spec if we have multiple json files .

i am currently getting an error

Like this

beforeEach(module('foo'));

`ngJson2JsPreprocessor: {

  cacheIdFromPath: function(filepath) {
    // example strips 'public/' from anywhere in the path
    // module(app/templates/template.html) => app/public/templates/template.html
    var cacheId = filepath.strip('public/', '');
    return cacheId;
  },


  moduleName: 'foo'
}`
@mgol
Copy link
Contributor

mgol commented Nov 4, 2016

The advantage of the current way is that you're just importing what's needed, not all the files. However, I'm open to supporting that. Would you like to submit a pull request?

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