In the previous post, I described two Angular 4 component communication scenarios used to enable sibling component interaction. In this post, I'll walk you through the steps I followed when adding support for a simple Angular 4 logging service that uses dependency injection. Getting Started You've probably heard the expression:…
2 posts tagged
Service
Angular 4 and Sibling Component Interaction
Angular's Getting Started Guide contains recipes for common component communication scenarios in which two or more components share information. The scenarios discussed, include: Pass data from parent to child with input binding Intercept input property changes with a setter Intercept input property changes with ngOnChanges() Parent listens for child event…