Am receiving data in form of {room1: 4, room2: 2}
received in a name of roomData
$scope.testdata = [{
'room': 'room0',
'users': '10'
}];
$scope.setLobbyRoom = function (roomData) {
$scope.inc = 0;
for (i in roomData) {
//want to push the data into the array list here.
}
}