added possibility to see the "raw" json.

This commit is contained in:
didier.amyot committed 2014-05-29 09:42:05 -04:00
1 parent abcff05635
commit b52394b69b
4 files changed
+4 -4

No files matched your search

@@ -21,7 +21,7 @@ root.controllers.controller('documentCtrl', ['$scope', '$routeParams', '$locatio
url = "#{ url }/idx/#{$routeParams.idx - 1}"
else if $routeParams.id
url = "#{ url }/_id/#{$routeParams.id}"
$scope.raw_url = url
util.get(url).then((res) ->
$scope.doc = res.data.document
$scope.meta = res.data.meta