dev:angular_dev_best_practices
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:angular_dev_best_practices [2019/01/18 17:10] – [Unit Tests] erickson | dev:angular_dev_best_practices [2019/01/22 10:12] – [Unit Tests] erickson | ||
---|---|---|---|
Line 5: | Line 5: | ||
- | * Run 'ng build --prod' | + | * Run %%'ng build --prod' |
* This ensures the templates also compile successfully. | * This ensures the templates also compile successfully. | ||
* Run 'ng lint' before committing. | * Run 'ng lint' before committing. | ||
Line 15: | Line 15: | ||
* Use 2-space indentation in HTML files | * Use 2-space indentation in HTML files | ||
* Use 4-space indentation in Typescript and CSS files. | * Use 4-space indentation in Typescript and CSS files. | ||
- | * Avoid column widths that extend well beyond 80-100 characters | + | * Avoid column widths |
* Use Bootstrap utility classes when possible instead of writing custom CSS. | * Use Bootstrap utility classes when possible instead of writing custom CSS. | ||
* https:// | * https:// | ||
Line 33: | Line 33: | ||
* e.g. idl.service.ts and idl.spec.ts are in the same directory. | * e.g. idl.service.ts and idl.spec.ts are in the same directory. | ||
* See Open-ILS/ | * See Open-ILS/ | ||
- | * The highest priority for unit test implementation are shared *.service.ts files since changes to these files have the broadest impact. | + | * The highest priority for unit test implementation are shared *.service.ts files, followed by shared components, |
dev/angular_dev_best_practices.txt · Last modified: 2023/11/24 23:05 by sandbergja