I am not new to AngularJS and have been using it for quite a while already, building several complete apps (for both desktop and mobile).
I am changing the way I code with AngularJS because I have projects that need to be scalable. I used to have huge files of code, do-everything controllers, no directives and no components. This made it hard to edit my code after 2 weeks of not-working on a particular project (I'm sure everybody understands this).
I bought a couple of courses and started learning about what's known as the component approach. I can easily understand and put in practice the things I've learned, but this approach (components) requires being able to see the "full picture" (articulations?) of an application, which is very difficult for me.
Questions
- Is this correct: In AngularJS, modules are like features and they can contain multiple components (stateful/less)?
- When I build an app, should I first think of the modules and how they relate to each other and then think of what components I need for each one of these modules?
- What are the best things to do before the actual coding?
I'm asking these questions because although I feel comfortable working with AngularJS, it's hard for me to take a step back and visualize the whole project at once. I'd like to be able to understand everything that's going on in my app, "at the same time", this surely doesn't make much sense but hopefully you understand.
Also I'm not a native English speaker, but you've noticed.