Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from '@angular/core';
- import ymaps from 'ymaps';
- @Component({
- selector: 'app-yamaps',
- templateUrl: './yamaps.component.html',
- styleUrls: ['./yamaps.component.css']
- })
- export class YamapsComponent implements OnInit {
- constructor() {
- }
- ngOnInit() {
- ymaps.load().then(maps => { });
- }
- }
- Error:
- ERROR Error: Uncaught (in promise): ReferenceError: global is not defined
Advertisement
Add Comment
Please, Sign In to add comment