load component in another component angular code example
Example 1: update one component from another component angular 9
this.CommonService.updateListsObs
.subscribe(
(response) => {console.log("You will get date range in response which can be used to filter Car list in Component A ")}
)
Example 2: how to add different components in the same page in angular
<div>{{title}}</div>
<app-comp1></app-comp1>
<app-comp2></app-comp2>