Advertisement
adamsjt95

Untitled

Jun 3rd, 2020
2,105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export class PokemonComponent implements OnInit {
  2.   // the input decorator creates an attribute on the component directive
  3.   // this will allow us to input the pokemon from the parent component
  4.   @Input() pokemon: Pokemon;
  5.   filterText: string;
  6.  
  7.   constructor() { }
  8.  
  9.   ngOnInit() {
  10.     this.filterText = '';
  11.   }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement