Skip to content

Directory support? #1

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

Closed
JoeFirebaugh opened this issue Jan 15, 2014 · 1 comment
Closed

Directory support? #1

JoeFirebaugh opened this issue Jan 15, 2014 · 1 comment

Comments

@JoeFirebaugh
Copy link

First of all, I want to thank you for a super cool angular script. I was excited to see an attempt to have automatic resource loading.

I was curious if there was already an architected way to have the code in different directories? For instance, I would like to have my main angular application in the root of the src tree and the controllers in deeper directories broken apart by feature. It appears that the plugin only looks in the current directory for missing angular classes.

Thanks,
Joe

@hansl
Copy link
Owner

hansl commented Jan 15, 2014

So with the latest 2.1 I added a couple of ways to do that. In 0.1.0 you could use dots to specify directories (so my.module.file would become my/module/file.js), but that wasn't good enough for my own project. I added configuration options for this. You can specify these by using angular.loader.config(). I'll document the whole thing.

You can technically use slashes in the module names btw, so you could do just that too.

@hansl hansl closed this as completed Jan 17, 2014
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