denniss17/pimatic-angular-material-frontend

View on GitHub
app/controllers/settings/devices.js

Summary

Maintainability
A
0 mins
Test Coverage
angular.module('pimaticApp.settings').controller('DevicesController', [
    '$scope',
    'utils',
    'store',
    function ($scope, utils, store) {
        $scope.getUngroupedDeviceIds = utils.getUngroupedDeviceIds;

        $scope.getGroups = function () {
            return store.get('groups');
        };

        $scope.getDevice = function (deviceId) {
            return store.get('devices', deviceId)
        };
    }
]);