Advertisement
ike0790

app component

Jan 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. import { Component, OnInit } from '@angular/core';
  2. import { MapService } from './map.service';
  3. import { NgForm } from "@angular/forms";
  4.  
  5.  
  6. @Component({
  7. selector: 'app-root',
  8. templateUrl: './app.component.html',
  9. styleUrls: ['./app.component.css']
  10. })
  11. export class AppComponent {
  12. listingTest: any[] = [
  13. {name: "Bob", desc: "this is a testy"},
  14. {name: "Alice", desc: "this is gonna be cool"},
  15. {name: "Toshi", desc: "been here since 8:45a"},
  16. {name: "Vic", desc: "I got the... I got the... I!"},
  17. {name: "Bob2", desc: "this is a testy"},
  18. {name: "Alice2", desc: "this is gonna cool"},
  19. {name: "Toshi2", desc: "been here since 8:45a"},
  20. {name: "Vic2", desc: "I got the... I got the... I!"},
  21. ]
  22. mapToken : String;
  23.  
  24. constructor(private _mapService: MapService) {
  25.  
  26. }
  27.  
  28. ngOnInit(){
  29. this.mapToken = this._mapService.mapToken
  30. console.log(this.listingTest);
  31. console.log(this._mapService.mapToken);
  32. }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement