Load the list of transactions until the Addr/Block Info are loaded

This commit is contained in:
Gustavo Cortez 2014-03-20 16:51:37 -03:00
parent 47486b73db
commit 6d99920d1b
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@
angular.module('insight.address').factory('Address',
function($resource) {
return $resource('/api/addr/:addrStr', {
return $resource('/api/addr/:addrStr/?getBalance=1', {
addrStr: '@addStr'
}, {
get: {

View File

@ -72,8 +72,8 @@
</table>
</div>
</div>
<h2>Transactions</h2>
<div data-ng-controller="transactionsController" data-ng-init="load('address')">
<div data-ng-if="address.addrStr" data-ng-controller="transactionsController" data-ng-init="load('address')">
<h2>Transactions</h2>
<div data-ng-include src="'/views/transaction/list.html'" when-scrolled="loadMore()"></div>
</div>
</section>

View File

@ -119,8 +119,7 @@
</div>
</div>
</div>
<div data-ng-controller="transactionsController" data-ng-init="load('block')">
<div data-ng-if="block.hash" data-ng-controller="transactionsController" data-ng-init="load('block')">
<h3>Transactions</h3>
<div data-ng-include src="'/views/transaction/list.html'" when-scrolled="loadMore()"></div>
</div>