Factor is a component and Idea is an another component I need to show all the data's of Factor in the Component Idea.Can anyone say How to reuse the component.
CodePudding user response:
You need to use @Input()
for passing data into child component, and @Output()
for emitting event from child component. You can refer to the documentation for more clarity https://angular.io/guide/inputs-outputs
CodePudding user response:
you creat a component like : ng g component xyz after using selector reuse component Like => <app-xyz(component-Name)></app-xyz(component-Name))