Skip to content

Instantly share code, notes, and snippets.

@alxhub
Created April 14, 2017 16:41
Show Gist options
  • Save alxhub/a1270befa99b0457d0875c821346eba7 to your computer and use it in GitHub Desktop.
Save alxhub/a1270befa99b0457d0875c821346eba7 to your computer and use it in GitHub Desktop.
src/
app/ (application root component)
index.ts (most components use this pattern of an index.ts, style.css, and template.html)
style.css
template.html
entry/ (different entrypoints)
dev/
main.ts (main file for JIT mode)
module.ts
prod/
main.ts (main file for prod mode)
module.ts
routes/ (routing tree, organized for lazy loading)
index.ts (root routing module)
admin/ (routable component)
module.ts (route module, lazy loaded)
root/ (a route component)
index.ts
style.css
template.html
user/ (another route component)
index.ts
style.css
template.html
ui/ (components only used in admin routes)
user/
index.ts (module for these components)
user-list/
index.ts
style.css
template.html
home/
module.ts
root/
index.ts
style.css
template.html
ui/ (components used throughout the app)
common/
index.ts (module for these components)
common-component/
index.ts
style.css
template.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment