Using ngOnChanges to intercept input property changes
In this recipe, you'll learn how to use
ngOnChanges to intercept changes using the
SimpleChanges API. We'll listen to a
vName input passed from the
VersionControlComponent parent component to the
VcLogsComponent child component.
The project for this recipe resides in
- Open the project in Visual Studio Code.
- Open the terminal and run
npm installto install the dependencies of the project.
- Once done, run
ng serve -o. This should open the app in a new browser tab and you should see the app as follows: