(function() {
  'use strict';

  angular
    .module('app.waitList')
    .controller('WaitListController', WaitListController);

  function WaitListController() {
    var vm = this;

    vm.parties = [1, 2, 3, 4];

    vm.addParty = addParty;

    function addParty() {
      vm.parties.push('another');
    }
  }

})();
(function() {
  'use strict';

  angular
    .module('app.waitList')
    .controller('WaitListController', WaitListController);

  WaitListController.$inject = ['$firebaseArray'];

  function WaitListController($firebaseArray) {
    var vm = this;

    var fireParties = new Firebase('https://waitandeat-v2-demo.firebaseio.com/parties');
    vm.parties  = $firebaseArray(fireParties);
    vm.addParty = addParty;

    function addParty() {
      vm.parties.$add('another');
    }
  }

})();
Use firebase data instead of simply array.
Use firebase data instead of simply array.
