Skip to content

Instantly share code, notes, and snippets.

@spencercarnage
Created February 9, 2015 18:41
Show Gist options
  • Save spencercarnage/2622c7ec62d9607527f3 to your computer and use it in GitHub Desktop.
Save spencercarnage/2622c7ec62d9607527f3 to your computer and use it in GitHub Desktop.
// Example pulled from https://scotch.io/tutorials/angularjs-best-practices-directory-structure
/*
app/
----- shared/ // acts as reusable components or partials of our site
---------- sidebar/
--------------- sidebarDirective.js
--------------- sidebarView.html
---------- article/
--------------- articleDirective.js
--------------- articleView.html
----- components/ // each component is treated as a mini Angular app
---------- home/
--------------- homeController.js
--------------- homeService.js
--------------- homeView.html
---------- blog/
--------------- blogController.js
--------------- blogService.js
--------------- blogView.html
----- app.module.js
----- app.routes.js
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment