|
@@ -1,4 +1,5 @@
|
|
|
import {Component, OnInit} from '@angular/core';
|
|
import {Component, OnInit} from '@angular/core';
|
|
|
|
|
+import {BcInfoService} from './bc-info.service';
|
|
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
|
selector: 'blockchain-info',
|
|
selector: 'blockchain-info',
|
|
@@ -6,7 +7,11 @@ import {Component, OnInit} from '@angular/core';
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
export class BcInfoComponent implements OnInit {
|
|
export class BcInfoComponent implements OnInit {
|
|
|
- constructor() {}
|
|
|
|
|
|
|
+ constructor(public bcInfoService: BcInfoService) {}
|
|
|
|
|
|
|
|
ngOnInit() {}
|
|
ngOnInit() {}
|
|
|
|
|
+
|
|
|
|
|
+ getUserBalance() {
|
|
|
|
|
+ return this.bcInfoService.getUserBalance();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|