kuncevic.dev Components Communication 1. Parent to Child @Input() 2. Child to Parent @Output() 3. Custom Shared Service 4. State Management (ngxs, ngrx, akita, etc)
kuncevic.dev For Better Maintainability ✅ Create multiple modules (aka feature modules) ✅ Organize your modules ✅ Avoid having one big AppModule per app
kuncevic.dev Observable vs Promise Emits multiple values over period of time Emits only single value at a time Lazy (Cold). Observable is not called until we subscribe for it. Not Lazy (Hot).It is executed without calling then or catch Can be canceled by calling unsubscribe Not cancellable Supports operators like map, forEach, reduce, retry, retryWhen Operators are not available We can chain observables to handle complex logic on the streams We can use only then clause Predictable error handling Pushes errors down the chain