Angular Clean Code
Angular Clean Code
* Tool must be used within established best practice for a clean, performant and maintainable Angular
Codebase.
- use rxjs: Encapsulate logic by declaring data relationships and composing Observables
-USe @ngrx-component -store for managing the state at the component level
* - % Imperative
Architecture
* Presentation components
- Only @Input(), @Ouput() and Reactive Forms.
- NO LOGIC & NOT STATE (no "this ", variables except inputs and outputs).
* Container Component.
@ouput events
- NO LOGIC & NOT STATE (no "this ", variables except imports from Store selectores).
- Communicates with the Component Store (initialises and updates the state, imports selectores)
* Components Store
* Data services
@ngrx-component-state