I have a child and a parent component.
I want to pass an array from the child component and display it in the parent component.
I first started with:
@Input data: string[];
Then in ngOnInit I have:
ngOnInit() {
this.data = ['name1', 'name2', 'name3'];
}
Then I have the parent component:
<app.parent></app.parent>
My question is: how do I display this data in the parent component?