Accessing child component value in Parent component

时间:2018-02-26 17:52:35

标签: angular angular2-template angular2-forms

I am having an angualr 2 application and I loading child components in parent components using *ngFor. But I am facing a issue while I try to pass value from child to parent using @Output because it always return the value from first child component of *ngFor to the parent. Actually It should return the value from respective child component on which @Output event is emitted.

Any idea what is the issue.

Thanks in Advance

0 个答案:

没有答案