I have a component as shown below
<app-data-table [headerDataList]=headerDataList
[dataList]=gradeDetailsList></app-data-table>
gradeDetailsList is the data list which is got from the API
getAllGradeDetails() {
this.gradeDetailsService
.getBulkGradeDetails()
.subscribe((data: any) => {
console.log(data);
this.gradeDetailsList = data.reverse();
});
}
the view is render before the API returns the data is there a life cycle method i can use to bind the view once i get the data