added enlapsed time to make the query on document.
This commit is contained in:
1 parent
14ce42475e
commit
abcff05635
3 files changed
+15
No files matched your search
@@ -25,6 +25,7 @@ root.controllers.controller('documentCtrl', ['$scope', '$routeParams', '$locatio
|
||||
util.get(url).then((res) ->
|
||||
$scope.doc = res.data.document
|
||||
$scope.meta = res.data.meta
|
||||
$scope.enlapsed_time = res.data.enlapsed_time
|
||||
).catch( (res) ->
|
||||
if res.data.error == "not found"
|
||||
$scope.notfound = true
|
||||
|
||||
@@ -41,3 +41,8 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" ng-show="enlapsed_time">
|
||||
<div class="columns large-12" style="text-align: center;">
|
||||
took {{enlapsed_time}} seconds
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user