ClickerMonkey / SemanticUI-Angular

Angular Directives for Semantic UI
http://clickermonkey.github.io/SemanticUI-Angular/examples/
MIT License
56 stars 28 forks source link

Controller annotation #17

Closed alex88 closed 7 years ago

alex88 commented 7 years ago

I've seen many controllers uses the form

controller: function($scope)

which creates issues when code is minified and angular refuses to load the controller in strict mode.

Shouldn't this use annotations like

controller: ['$scope', function($scope){}]
ClickerMonkey commented 7 years ago

Yes it should, this is one of the things I was working on earlier today. I'll make sure to update this issue when this is committed and released.

alex88 commented 7 years ago

Awesome, thanks!

ClickerMonkey commented 7 years ago

Fixed with release 0.2.0

alex88 commented 7 years ago

Awesome! 🚀