M
M
Max2017-05-24 20:21:42
Angular
Max, 2017-05-24 20:21:42

Yandex maps in AngularJS. Why is the map not being added?

I want to add a Yandex map to an angular project. do as described here https://github.com/tulov/angular-yandex-map
Template

<ya-map id="map" ya-zoom="8" ya-center="[37.64,55.76]" ya-after-init="afterMapInit($target)"></ya-map>

JS
var _map;
        $scope.afterMapInit = function(map){
          _map = map;
        };

Module
angular.module('Shop',
    [
      'ngRoute',
      'shopsCatalog',
      'shopFullInfo',
      'yaMap'
    ]);

Please help, I can't figure out why

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question