Created
October 25, 2014 15:45
-
-
Save rotemtam/95b5e84ee9946767435a to your computer and use it in GitHub Desktop.
pi-mac-monitor controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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