Comments (2)
Yes, for large-scale app I expect you would want to split filters, controllers etc. into separate files and use requireJS in development to get them into browser and for tests.
Now depending on how large your application really is you need to decide on what strategy you'll use for production. For most projects it would be use almond JS and build a single, minified version of a final delivery file (something I will include in future version of the project). However for really large applications where a combined, minified version would weight more than say 500K I would consider delivering your controllers and templates separately as needed.
Hope this helps a little, good luck with your project!
from angular-requirejs-seed.
Thanks!
from angular-requirejs-seed.
Related Issues (20)
- Testing asynchronously loaded controllers HOT 2
- How do I make sub-services into a service folder HOT 3
- ng-animate
- main.js: confusing $html.addClass('ng-app') HOT 1
- Controller callback is needed? HOT 1
- require.js question, may be issue HOT 1
- protractor-conf.js does not exist HOT 1
- ui-router not working while unit testing
- unit testing MyCtrl2 scope values gives undefined error HOT 1
- Use of resolve in Routing
- How to pass dependency into sub-services ? HOT 1
- was it cached? HOT 1
- service HOT 1
- Add jasmine to .jshintrc HOT 1
- How to merge views into components HOT 1
- Using window in the require config will not work with the requireJS optimizer
- How to move tests into different area? HOT 1
- Application Loader HOT 3
- webapp load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-requirejs-seed.