Angular Style Guide - DominicodersPRO PDF
Angular Style Guide - DominicodersPRO PDF
Practices
1. Single responsibility
A class should have one and only one reason to change meaning that a
class should have only one job.
Interfaces are completely removed during compilation and so they will not
add any unnecessary bloat to our final js code
5. Flat
Use ngFor
Now, each time the changes occur, the whole DOM tree will be
re-rendered.
8. Use index.ts
index.ts helps us to keep all related things together so that we don’t have
to be bothered about the source file name.
This helps reduce size of the import statement.
JSON to TS
Angular2-switcher
angular2-switcher Easily navigate to
typescript(.ts)|template(.html)|style(.scss/.sass/.less/.css) in
angular projects.
Auto Import
Auto Import Automatically finds, parses and provides code
actions and code completion for all available imports. Works
with Typescript and TSX
Path Intellisense
Path Intellisense Visual Studio Code plugin that
autocompletes filenames
Angular Essentials
Angular Essentials is Extension Pack for VS Code