mirror of
https://github.com/arnaucube/goBlockchainDataAnalysis.git
synced 2026-02-07 19:46:45 +01:00
added address view, started implementation of dark theme
This commit is contained in:
21
web/views/address/address.js
Normal file
21
web/views/address/address.js
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('app.address', ['ngRoute'])
|
||||
|
||||
.config(['$routeProvider', function($routeProvider) {
|
||||
$routeProvider.when('/address/:hash', {
|
||||
templateUrl: 'views/address/address.html',
|
||||
controller: 'AddressCtrl'
|
||||
});
|
||||
}])
|
||||
|
||||
.controller('AddressCtrl', function($scope, $http, $routeParams) {
|
||||
$scope.address = {};
|
||||
$http.get(urlapi + 'address/' + $routeParams.hash)
|
||||
.then(function(data, status, headers, config) {
|
||||
console.log(data);
|
||||
$scope.address = data.data;
|
||||
}, function(data, status, headers, config) {
|
||||
console.log('data error');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user