Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from '@angular/core';
- import { MapService } from './map.service';
- import { NgForm } from "@angular/forms";
- @Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.css']
- })
- export class AppComponent {
- listingTest: any[] = [
- {name: "Bob", desc: "this is a testy"},
- {name: "Alice", desc: "this is gonna be cool"},
- {name: "Toshi", desc: "been here since 8:45a"},
- {name: "Vic", desc: "I got the... I got the... I!"},
- {name: "Bob2", desc: "this is a testy"},
- {name: "Alice2", desc: "this is gonna cool"},
- {name: "Toshi2", desc: "been here since 8:45a"},
- {name: "Vic2", desc: "I got the... I got the... I!"},
- ]
- mapToken : String;
- constructor(private _mapService: MapService) {
- }
- ngOnInit(){
- this.mapToken = this._mapService.mapToken
- console.log(this.listingTest);
- console.log(this._mapService.mapToken);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement