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

Meet BootUI | Scan AI-Generated Code & Find What AI Missed !

 very usefull link to verify ai content https://www.youtube.com/watch?v=pULGt0Rme58 Click