added loader!

This commit is contained in:
didier.amyot committed 2014-05-21 13:03:22 -04:00
1 parent 37209f6779
commit cd28c44c00
13 files changed
+64 -29

No files matched your search

@@ -62,7 +62,7 @@ testmongoJsToMongoJSON = () ->
testmongoJsToMongoJSON()
root.controllers.controller('documentCtrl', ['$scope', '$routeParams', '$http', ($scope, $routeParams, $http) ->
root.controllers.controller('documentCtrl', ['$scope', '$routeParams', 'util', ($scope, $routeParams, util) ->
$scope.idx = $routeParams.idx
$scope.doc = {}
$scope.idx = Number($routeParams.idx) or 1
@@ -83,7 +83,7 @@ root.controllers.controller('documentCtrl', ['$scope', '$routeParams', '$http',
else if $routeParams.id
url = "#{ url }/_id/#{$routeParams.id}"
$http.get(url).then((res) ->
util.get(url).then((res) ->
$scope.doc = res.data.document
$scope.meta = res.data.meta
).catch( (res) ->