added address view, started implementation of dark theme

This commit is contained in:
arnaucode
2017-08-28 22:49:17 +02:00
parent d8d49e4e4a
commit 139040269f
17 changed files with 205 additions and 35 deletions

View 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');
});
});