attempting to do:
1st page:
consumes pokeapi.co API which returns all pokemon as { name: pokemon.name, url: pokemon.url } push data to array
loop over that array and do an API call for every pokemon name: pokeapi.co/pokemon/${name}. this allows rendering of img src.
when a user/human hovers onto the img-data, the original app makes another data call and uses id from event.target params.
This time in ASP.net, the img src for back_default is prepared in the code-behind.
mouse enter uses [i] and event.target id params to retrieve corresponding image.
error:
minimum viable test of a hard-coded id into the @Model.PokemonSrcback works.
attempting to do so dynamically is returning issues with the string.
proposed approach:
0: already test with hardcoded string.
1: make a new string without hardcoding it.
attempting to do: 1st page: consumes pokeapi.co API which returns all pokemon as { name: pokemon.name, url: pokemon.url } push data to array loop over that array and do an API call for every pokemon name: pokeapi.co/pokemon/${name}. this allows rendering of img src.
when a user/human hovers onto the img-data, the original app makes another data call and uses id from event.target params. This time in ASP.net, the img src for back_default is prepared in the code-behind.
mouse enter uses [i] and event.target id params to retrieve corresponding image.
error: minimum viable test of a hard-coded id into the @Model.PokemonSrcback works. attempting to do so dynamically is returning issues with the string.
proposed approach: 0: already test with hardcoded string. 1: make a new string without hardcoding it.
possible improvements: