Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i don't want child component to be repeated every time I submit.I want it to change in the same place.

What I have tried:

child component.ts

@Input() m : [];

child component.html

a form

in parent component html

<div *ngFor="let item of c" >
<app-facture [m] ="item"></app-facture>
</div>
Posted
Comments
SwarupDChavan 30-Apr-20 8:11am    
you have placed it inside the for structural directive,it will keep on repeating the child component

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900