Refactored controller back to screen.

This commit is contained in:
Gunther Brunner
2014-02-19 22:57:51 +09:00
parent eae8062252
commit 7e9929d77f
4 changed files with 2 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
module.exports = angular.module('stf/screen', [
require('stf/screen/scaling').name
])
.directive('deviceScreen', require('./screen-directive'))
.directive('deviceScreen', require('./screen-directive'))
.controller('DeviceScreenCtrl', require('./screen-controller'))

View File

@@ -0,0 +1,9 @@
module.exports = function DeviceScreenCtrl($scope, ScalingService) {
$scope.ready = false
$scope.displayError = false
$scope.ScalingService = ScalingService
$scope.promiseOfDevice.then(function () {
$scope.ready = true
})
}