masquitos

Untitled

Sep 13th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit } from '@angular/core';
  2. import ymaps from 'ymaps';
  3.  
  4. @Component({
  5.   selector: 'app-yamaps',
  6.   templateUrl: './yamaps.component.html',
  7.   styleUrls: ['./yamaps.component.css']
  8. })
  9.  
  10.  
  11. export class YamapsComponent implements OnInit {
  12.   constructor() {
  13.   }
  14.  
  15.   ngOnInit() {
  16.     ymaps.load().then(maps => { });
  17.   }
  18.  
  19. }
  20.  
  21.  
  22. Error:
  23. ERROR Error: Uncaught (in promise): ReferenceError: global is not defined
Advertisement
Add Comment
Please, Sign In to add comment