@inject IPokemonService PokemonService @inject IJSRuntime JS @inject NavigationManager Navigation @attribute [StreamRendering] @rendermode InteractiveServer

Available Pokémon

@(pokemons.Count()) Pokemon

@if(pokemons == null) { } else { @foreach (var pokemon in pokemons) { @{ string baseUrl = pokemon.PokemonImageUrl; string shinyUrl = pokemon.PokemonShinyImageUrl; } @if (pokemon.IsVariation) // If a Variant { @if (pokemon.VariationName == "Alolan") { } @if (pokemon.VariationName == "Paldean") { } } else // Otherwise, Base Case { } } }
# Pokemon Type Sleep Type Speciality
@if (shinyUrl == null) {
} else {
}
@pokemon.PokemonId Alolan @pokemon.PokemonName Paldean @pokemon.PokemonName @pokemon.PokemonName

@pokemon.SleepType

@pokemon.Speciality