What are good ways to organize a AngularJS application, is RequireJs the best way?
-
-
Answer:
Require.js (as any dependency manager) is a bit orthoganal to angular module system. For now, angular modules is simple namespaces with simple dependency resolution. Angular has no lazy-loading capabilities, but it is planned for future implementations. Require is a defacto standard right now, so I'll stick to it. Also, you can find lotta requirejs angular seeds on github. Given this preface, you can use any dependency manager with Angular, but you will need to invent the actual setup according to your projects needs. In the recent project we've used functional dissection for folder structure (all groupped resources are in one folder) and built a custom "package" abstraction on top of angular modules wrapped with requirejs.
Alexey Migutsky at Quora Visit the source
Related Q & A:
- What are good ways to save up for an iPod Touch?Best solution by wikihow.com
- What are good ways to promote my website?Best solution by Yahoo! Answers
- What are easy ways of writing a good essay?Best solution by Quora
- What are some good ways to advertise a business?Best solution by ChaCha
- What are good ways to get the "Last Second Bid" on eBay successfully?Best solution by ebay.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.