ngOnInit(): void {
this.fetchAllAnimeReviews();
}
public fetchAllAnimeReviews(){
this.animeservice.getAllAnimeReviews()
.subscribe(
response => {
this.Anime = response;
this.gridOption = this.createGridOptions();
console.log('grid options:', this.gridOption);
}
)
}
When I call the GridOptions inside ngOnInit, the rowData appears as undefined. However, when I call the GridOptions inside the getAllAnimeReviews function, the rowData gets assigned but on the UI it shows "loading..". Refer to the image for details.