Skip to content

Instantly share code, notes, and snippets.

Avatar

Brady Clifford bradyclifford

View GitHub Profile
View _angularjs-1-component-organization.md

Angular application directory structure

Leverages Angular UI Router instead of core ngRoute module. UI Router allows us to organize our application interface into a state machine. Unlike the $route service in the Angular ngRoute module, which is organized around URL routes, UI-Router is organized around states, which may optionally have routes, as well as other behavior, attached.

LIFT* Organization principle:

  • L - Locating code easy
  • I - Identify code at a glance