btford/ngmin

Minification not detecting controller style

shanti2530 opened this issue · 2 comments

The controller is defined as follows:

var MainCtrl = function($scope, DataService) {...}

The controller is registered with the app module as follows:

angular.module('myApp').controller('mainCtrl', MainCtrl);

ngmin does not work if I write the controller and register it this way.

👍 I just got bit by this.

Please read the readme.

Unless you have a compelling reason for this style of code, I'm not interested in adding this feature.