I’m trying to get an array of a type of awards mapped to the Kendo Item array of title: string, location: string.
The Kendo Scroll View takes an array of items[title: string, location: string]
Here is what I’m trying to work with:
public ngOnInit(): void
{
this.award$ = this.servicemethods.getRecentAwardsKendo();
this.award$.subscribe({
next: value => this.items.map(value.forEach(s => ({title: s.awardBannerText})
})
}
next: does have all the awards. I can index into the array and get any location URL, text properties.
The getRecentAwardsKendo() is the method that returns what I want the kendo scroll view to use. It is in-mem data for 4 arwards. Each of these has the first name, last name of the recipient, the date awarded and award banner text. I want to concatenate all these and stuff this string into the title: property. Need to also populate the location: with the imageUrl.
I can individually get all items from the array of awards returned.
What is the right way to iterate over the array returned, and map it to the Items[] array?