16 lines
327 B
TypeScript
16 lines
327 B
TypeScript
|
import { Component, OnInit } from '@angular/core';
|
||
|
import { Pokemon } from '../pokemon';
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-add-pokemon',
|
||
|
templateUrl: './add-pokemon.component.html',
|
||
|
styles: [],
|
||
|
})
|
||
|
export class AddPokemonComponent implements OnInit {
|
||
|
pokemon: Pokemon;
|
||
|
|
||
|
ngOnInit() {
|
||
|
this.pokemon = new Pokemon();
|
||
|
}
|
||
|
}
|