Here follows a draft guide/checklist on how to get started with an angular project.
- PAGE BUILDING
- Identify and scetch Components tree.
- Identify components and subcomponents
- Make list of items components themselves.
- Identify the model and model classes.
- tip: Try to isolate data structures from components. Think... "can the component be replaced without affecting data"?
- tip: Refere to MVC. M = data, C+V = component.
- tip: Fat Model, Skinny controllers: don't be afraid to put as much logic to model as possible. Let component worry only about UI.
- tip: When building classes make use the Law of Demeter.
- tip: Based on Law of Demeter don't be afraid to define methods that just provide access to sub-methods. Allows better decoupling.
- Identify and scetch Components tree.