-Adding table ui for styling with style.

-Added device.update event so the table can reload it's data (watch would be an overkill).
This commit is contained in:
Gunther Brunner
2014-03-24 18:20:31 +09:00
parent 4910314342
commit e1feb20df6
6 changed files with 170 additions and 7 deletions

View File

@@ -11,6 +11,8 @@ module.exports = function DeviceServiceFactory($rootScope, $http, socket) {
, scopedSocket = socket.scoped($scope)
function notify() {
$scope.$broadcast('devices.update', true)
// Not great. Consider something else
if (!$scope.$$phase) {
$scope.$digest()