Is there much of a difference in performance by splitting each controller up into it’s own seperate JS file?
I assume all of the files only need to load once during the runtime of an Ionic app?
Does the answer on the link below apply to web applications more so than an ionic app?
Well … for developing , split the controllers/services into seperate files so you can structure your files. But when you compile to android/ios, you need to concat everything to 1 big file.
You can use John Papa style guide :
# Angular 1 Style Guide
## Angular Team Endorsed
Special thanks to Igor Minar, lead on the Angular team, for reviewing, contributing feedback, and entrusting me to shepherd this guide.
## Purpose
*Opinionated Angular style guide for teams by [@john_papa](//twitter.com/john_papa)*
If you are looking for an opinionated style guide for syntax, conventions, and structuring Angular applications, then step right in. These styles are based on my development experience with [Angular](//angularjs.org), presentations, [Pluralsight training courses](http://app.pluralsight.com/author/john-papa) and working in teams.
The purpose of this style guide is to provide guidance on building Angular applications by showing the conventions I use and, more importantly, why I choose them.
>If you like this guide, check out my [Angular Patterns: Clean Code](http://jpapa.me/ngclean) course at Pluralsight which is a companion to this guide.
[](http://jpapa.me/ngclean)
## Community Awesomeness and Credit
Never work in a vacuum. I find that the Angular community is an incredible group who are passionate about sharing experiences. As such, Angular expert Todd Motto and I have collaborated on many styles and conventions. We agree on most, and some we diverge. I encourage you to check out [Todd's guidelines](https://github.com/toddmotto/angular-styleguide) to get a sense for his approach and how it compares.
Many of my styles have been from the many pair programming sessions [Ward Bell](https://twitter.com/wardbell) and I have had. My friend Ward has certainly helped influence the ultimate evolution of this guide.
This file has been truncated. show original
You really don’t need lazy loading on an ionic app (on real device), because you won’t be updating the files.
That’s my opinion
1 Like