angular two page same component code example
Example: how to add different components in the same page in angular
<div>{{title}}</div>
<app-comp1></app-comp1>
<app-comp2></app-comp2>
<div>{{title}}</div>
<app-comp1></app-comp1>
<app-comp2></app-comp2>