Monday, 6 May 2024

angular parent to child

 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

Car pooling app

 I'll create a car pooling app with real-time vehicle tracking, pickup/drop time estimates, and a list of onboard users. Since we don...