AngularJS module for bitcore-wallet-client
bower install angular-bwc
Add javascript to index.html
after angular.js:
<script src="bower_components/angular-bwc/angular-bwc.js"></script>
Add to your array of AngularJS modules:
var modules = [
'bwcModule'
];
var myApp = angular.module('myApp', modules);
See the API referece for more details.
angular.module('myApp').factory('myService',
function(bwcService) {
var myWalletData; // e.g. getting from localStorage
bwcService.getStatus(myWalletData, function(err, res) {
console.log(res);
});
}
);