Category: Angualr

  • Angular Component Communication: A Simple Way Now using input() and model()

    Angular Component Communication: A Simple Way Now using input() and model()

    After going through some latest updates on Angular, I came across this new way of communication between component. We were using @Input() and @Output() decorators for communication. However, Angular 17 introduced input signals and model() for communication, and I personally loved it’s simplicity. Now, you can bind the property in the template: The input() and…

  • Angular tap() operator

    Angular tap() operator

    tap() is an operator of rxjs library (used in Angular) which in my personnel view is very helpful when you are working with observables for side effects – which means doing something without affecting the the actual observable stream. Documentation says:- Used to perform side-effects for notifications from the source observable My definition :- tap()…