This repository was archived by the owner on Nov 27, 2025. It is now read-only.
Commit 7ca7741
committed
chore(structure): refactor to Angular style guide conventions
Reorganize application code to be more closely aligned
with the Angular Style Guide.
This is for the final version of the app and hasn’t been
factored into steps or into the tutorial text.
1. Folders-by-feature structure: /core, /phone_list, /phone_detail
https://github.com/johnpapa/angular-styleguide#style-y152
2. App root module depends on feature modules and core module.
https://github.com/johnpapa/angular-styleguide#style-y165
3. One component per file. Each controller/factory/filter in its own file.
https://github.com/johnpapa/angular-styleguide#style-y001
4. Feature+type file naming convention.
https://github.com/johnpapa/angular-styleguide#style-y120
5. Module files, *.module.js for each module.
https://github.com/johnpapa/angular-styleguide#style-y127
6. Component registration with getters
https://github.com/johnpapa/angular-styleguide#style-y022
7. Named functions
https://github.com/johnpapa/angular-styleguide#style-y024
8. Manual injection
https://github.com/johnpapa/angular-styleguide#style-y091
Related to angular/angular.js#133121 parent 5e54104 commit 7ca7741
File tree
27 files changed
+205
-193
lines changed- app
- js
- core
- phone_detail
- phone_list
- partials
- test
- unit
27 files changed
+205
-193
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
This file was deleted.
This file was deleted.
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
0 commit comments