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 c8628b2 commit 5593b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app/heroes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class HeroesComponent implements OnInit {
var self = this;
this.players = [];
this.dataRef.orderByChild("score").limitToLast(10).on("child_added", function(snapshot) {
self.players.unshift(snapshot.val());
self.players.push(snapshot.val());
});
}
ngOnInit() {
Expand Down

0 comments on commit 5593b1c

Please sign in to comment.