ClientCtrl made minifiable.

This commit is contained in:
Tanshu 2012-12-07 14:59:52 +05:30
parent 428de7f677
commit 59134c51fa
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}]
};