In the AppStudio Sample "Find A Route", I want to extract the text of the Directions, that are in the directionListModel of the l
ListView.
I assume it if fairly simple, and I have tried a buch of things, but I cannot get it - any quick suggestions
e.g., I tried
for(var i = 0; i < directionListModel.count; ++i) {
console.log(directionListModel.get(i).text);
}
I get
TypeError: Cannot read property 'count' of null
I put this at the end of onClicked in the "Solve Route" button
thanks