-
Notifications
You must be signed in to change notification settings - Fork 171
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
app.js: move app.config() into a config.js file. #155
Comments
+1, have several large config files and would love the ability to load config outside of the app file. |
Seems like this project is discontinued... Any thoughts about this issue @marcoslin ? |
It seems like a lot at first to try doing what this plugin is doing, but it's not too bad if you take small steps and commit to the process. I got frustrated with it because there always seemed to be JavaScript load errors when I tried using this library. I could never work out if it was me just doing it wrong (probably) or if it was something in the library that was not quite right. So I ended up starting from with require-js and angular ui-router scratch with these ideas and came up with something usable, maybe it will help: Basic demo: http://plnkr.co/edit/XU7MIXGAnU3kd6CITWE7?p=info Dan Wahlin's post is pretty helpful: http://weblogs.asp.net/dwahlin/dynamically-loading-controllers-and-views-with-angularjs-and-requirejs |
Sorry guys... The day job is killing me and leaving me no time to address my side projects. The quick answer to the question is that yes, you can move the config to a Take a look at the example here: https://plnkr.co/edit/G4pII6?p=preview Basically, |
I have an AngularAMD application as described here http://marcoslin.github.io/angularAMD/#/home
Can the app.config( ) { ... } section of code be moved from app.js into a config.js file?
Where is the new config.js file loaded?
app.js
The text was updated successfully, but these errors were encountered: