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', angular.module('insight.address').factory('Address',
function($resource) { function($resource) {
return $resource('/api/addr/:addrStr', { return $resource('/api/addr/:addrStr/?getBalance=1', {
addrStr: '@addStr' addrStr: '@addStr'
}, { }, {
get: { get: {

View File

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

View File

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