Files
openfoodnetwork/app/assets/javascripts/darkswarm/services/map_modal.js.coffee
2014-06-06 14:04:46 +10:00

7 lines
279 B
CoffeeScript

Darkswarm.factory "MapModal", ($modal, $rootScope)->
new class MapModal
open: (enterprise)->
scope = $rootScope.$new(true) # Spawn an isolate to contain the enterprise
scope.enterprise = enterprise
$modal.open(templateUrl: "map_modal.html", scope: scope)