Skip to content

Commit

Permalink
Update heroes.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
badmonster0 committed Feb 26, 2016
1 parent c9fc5ac commit c8628b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/app/heroes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export class HeroesComponent implements OnInit {
var self = this;
this.players = [];
this.dataRef.orderByChild("score").limitToLast(10).on("child_added", function(snapshot) {
self.players.push(snapshot.val());
self.players.unshift(snapshot.val());
});
}
ngOnInit() {
}
}
}

0 comments on commit c8628b2

Please sign in to comment.