Files
stf/res/app/control-panes/dashboard/upload/upload-controller.js
2014-03-31 16:13:12 +09:00

22 lines
528 B
JavaScript

module.exports = function UploadCtrl($scope) {
$scope.installation = null
$scope.install = function ($files) {
return $scope.control.install($files)
.then(function (tx) {
return tx.promise
.progressed(function (result) {
$scope.$apply(function () {
$scope.installation = result
})
})
.then(function (result) {
$scope.$apply(function () {
$scope.installation = result
})
})
})
}
}