When you are using parent child relation you like to pass
data from parent to data.
but child template intialized before getting data from api side.
to over come this we use noOnchanges in child class to get data after api call also the data will be added
@input child:childpage;
<child [child]="reslult" ></child>
No comments:
Post a Comment