Skip to content

Instantly share code, notes, and snippets.

@rotemtam
Created October 25, 2014 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rotemtam/95b5e84ee9946767435a to your computer and use it in GitHub Desktop.
Save rotemtam/95b5e84ee9946767435a to your computer and use it in GitHub Desktop.
pi-mac-monitor controller
angular.module('monitorApp')
.controller('MonitorCtrl', function ($scope, fbutil, $timeout) {
$scope.stations = fbutil.syncArray('stations', {limit: 15});
// display any errors
$scope.stations.$loaded().catch(alert);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment