Skip to content

Instantly share code, notes, and snippets.

@killerchip
Created December 31, 2017 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killerchip/53b57b1b015a42c67b4e1068135551eb to your computer and use it in GitHub Desktop.
Save killerchip/53b57b1b015a42c67b4e1068135551eb to your computer and use it in GitHub Desktop.
Angular Guide: Planning and Starting an Angular project

Starting an Angular Project Guidelines

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment