circlingthesun / angular-foundation-6

Foundation 6 directives for Angular 1.5+
http://circlingthesun.github.io/angular-foundation-6/
Other
95 stars 50 forks source link

Modal Will Not Open After Minification #69

Closed splanky47 closed 7 years ago

splanky47 commented 7 years ago

The Modal will not open after minification for me. I am using an updated version checked out yesterday and used the file out of the dist folder. I am getting the 'Unknown provider: eProvider <- e" error and have found it is here 'ctrlInstance = $controller(modalOptions.controller, ctrlLocals);' within the modal provider.

splanky47 commented 7 years ago

I found the error. Maybe consider updating the examples for this syntax

var modal = $modal.open({ templateUrl: 'partials/modal.html', controller: MyModalCtrl }); var MyModalCtrl = [ '$scope', '$modalInstance', function($scope, $modalInstance){ ... } ];