Building modular apps with Angular
Building modular apps with Angular is not an easy task. Since I arrived into an Angular project a couple of months ago I’ve been struggling with our architecture, trying to make it modular in a way that makes sense, and it hasn’t been a walk in the park.
Lets try to build an example app to see what I’m talking about. For my example we are going to have a single page app with three screens:
- Greetings screen – Contains links to mine and yours pages
- Mine – Shows a list of my stuff and has a link to greetings page
- Yours – Shows a list of your stuff and has a link to greetings page
These are the parts that will make our app:
- App module
- Greetings controller
- Mine controller
- Yours controller
- Reusable list module