Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class PokemonComponent implements OnInit {
- // the input decorator creates an attribute on the component directive
- // this will allow us to input the pokemon from the parent component
- @Input() pokemon: Pokemon;
- filterText: string;
- constructor() { }
- ngOnInit() {
- this.filterText = '';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement