feat.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user