Cannot read property 'push' of undefined(…) in angular2
Here goes the number array:
items : number[ ] = [ ];
you have to initialize array using below:
publicDeals: Deal[] = [];
or
publicDeals: Deal[] = new Array();
publicDeals
is not initiated;
publicDeals: Deal[] = [];