Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit 5ac6eff

Browse files
committed
Adding explicit DI injection to allow support for ng-strict-di
1 parent c2c8acd commit 5ac6eff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/drawDirective.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ angular.module('ui-leaflet')
2525
scope: false
2626
replace: false
2727
require: ['leaflet']
28-
controller: ($scope) ->
28+
controller: ['$scope', ($scope) ->
2929
@_deferredDrawTool = $q.defer()
3030
@getDrawTool = ->
3131
@_deferredDrawTool.promise
3232
@getScope = ->
33-
$scope
33+
$scope]
3434

3535
link: (scope, element, attrs, controller) ->
3636
mapController = controller[0]

0 commit comments

Comments
 (0)