Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Last active April 11, 2023 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NyaGarcia/0c9c7982bb45fed5c185b407a51927af to your computer and use it in GitHub Desktop.
Save NyaGarcia/0c9c7982bb45fed5c185b407a51927af to your computer and use it in GitHub Desktop.
NgBytes Standalone Pokemon Card
import { Component, Input } from '@angular/core';
import { CommonModule } from '@angular/common';
import { MatCardModule } from '@angular/material/card';
import { Pokemon } from '../pokemon.service';
@Component({
selector: 'ngbytes-pokemon-card',
standalone: true,
imports: [CommonModule, MatCardModule],
templateUrl: './pokemon-card.component.html',
styleUrls: ['./pokemon-card.component.css'],
})
export class PokemonCardComponent {
@Input() pokemon!: Pokemon;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment