ClientCtrl made minifiable.
This commit is contained in:
parent
428de7f677
commit
59134c51fa
@ -1,11 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
function ClientCtrl($scope, clients) {
|
||||
var ClientCtrl = ['$scope', 'clients', function ($scope, clients) {
|
||||
$scope.info = clients;
|
||||
}
|
||||
}]
|
||||
|
||||
ClientCtrl.resolve = {
|
||||
clients:function ($q, Client) {
|
||||
clients:['$q', 'Client', function ($q, Client) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
var successCb = function (result) {
|
||||
@ -14,5 +14,5 @@ ClientCtrl.resolve = {
|
||||
|
||||
Client.query({}, successCb);
|
||||
return deferred.promise;
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user