SHARE
TWEET

Untitled

a guest Jan 4th, 2016 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export class AppComponent implements OnInit {
  2.     public title = 'FOSSA Provisioning';
  3.     public scann:  ScanNetwork;
  4.  
  5.     constructor(private _scanService: ScanNetworkService) { }
  6.  
  7.     getOneScan() {
  8.         console.log('Get service');
  9.         this._scanService.getOneScan().then(val => this.scann = val);   //.then(scan => this.scann = scan);
  10.     }
  11.  
  12.     ngOnInit() {
  13.     console.log("onInit");
  14.     this.getOneScan();
  15.     }
  16.  
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top