8. ● What types of components are there?
○ How many component types do we need?
○ For example, there is atomic design architecture
Smart & Dumb
Components
1. Lesson 8
9. ● What types of components are there?
○ How many component types do we need?
○ For example, there is atomic design architecture
● How should components interact?
○ Input()/Output()
○ ViewChild()/Host()
○ Services
Smart & Dumb
Components
1. Lesson 9
10. ● What types of components are there?
○ How many component types do we need?
○ For example, there is atomic design architecture
● How should components interact?
○ Input()/Output()
○ ViewChild()/Host()
○ Services
● Should I inject services into any component?
○ If yes - how to avoid a mess and excessive relationships?
○ If no - which ones can we do it to?
Smart & Dumb
Components
1. Lesson 10
11. ● What types of components are there?
○ How many component types do we need?
○ For example, there is atomic design architecture
● How should components interact?
○ Input()/Output()
○ ViewChild()/Host()
○ Services
● Should I inject services into any component?
○ If yes - how to avoid a mess and excessive relationships?
○ If no - which ones can we do it to?
● How do I make my components reusable across views?
○ What components should be reusable and which ones should not?
Smart & Dumb
Components
1. Lesson 11
144. Summary
1. Smart & Dumb Components.
2. Do a forced cast of data from outside.
3. Use strict TypeScript.
4. Learn Rx.js & use NgRx in your app.
5. Do .unsubscribe() correctly.
144