Commit 99d02b55e2f3b248bd9c84ed6b8fdcd4e1a77d29
1 parent
b8263cd6d0
Exists in
master
and in
1 other branch
Fix de inyección de dependencia.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/osm-directive.js
... | ... | @@ -7,7 +7,7 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
7 | 7 | scope.map = L.map(contenedor).setView([attrs.latitud, attrs.longitud], attrs.zoom); |
8 | 8 | L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(scope.map); |
9 | 9 | }, |
10 | - controller: function($scope) { | |
10 | + controller: ['$scope', function($scope) { | |
11 | 11 | $scope.$watch('marcadores', function(valorNuevo) { |
12 | 12 | marcadores = $scope.marcadores; |
13 | 13 | mapa = $scope.map; |
... | ... | @@ -19,7 +19,7 @@ angular.module('focaAdminSeguimiento').directive('osm', function() { |
19 | 19 | ).openPopup(); |
20 | 20 | }); |
21 | 21 | }); |
22 | - }, | |
22 | + }], | |
23 | 23 | scope: { |
24 | 24 | latitud: '=', |
25 | 25 | longitud: '=', |