@inject IPokemonService PokemonService @inject IJSRuntime JS @inject NavigationManager Navigation @attribute [StreamRendering] @rendermode InteractiveServer @if (pokemons == null) {

Loading...

} else {

Available Pokémon

@(pokemons.Count()) Pokemon

@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 Sleep Type Speciality
@if(shinyUrl == null){
} else {
}
@pokemon.PokemonId Alolan @pokemon.PokemonName Paldean @pokemon.PokemonName @pokemon.PokemonName

@pokemon.SleepType

@pokemon.Speciality

}