This commit is contained in:
programmingPug
2018-03-31 23:08:25 -04:00
parent 7ad3c6b93a
commit c8e94178f8
5 changed files with 70 additions and 2 deletions

View File

@@ -59,6 +59,16 @@ export class GameGridComponent implements OnInit {
});
}
onKey( event: any ){
if( event.target.value != "" ){
this.gamesService.searchGamesByText( event.target.value ).subscribe( data => {
this.gamesData = data.games;
});
}else{
this.getGamesList();
}
}
isEmptyObject(obj) {
return (obj != undefined);