I use ng-annotate and uglify for that, which I automate using gulp. https://www.npmjs.org/package/gulp-uglify https://www.npmjs.org/package/gulp-ng-annotate
That allows me to write non-array-style code, but still be able to uglify and minify. e On Thu Nov 20 2014 at 11:55:52 AM Bedugger <[email protected]> wrote: > The extra code needed to avoid the minify problem is clunky and redundant > (see example *bold* below). Is there a utility that both inserts that > extra code and minifies the file? > > phonecatControllers.controller('PhoneListCtrl', *['$scope', '$http',* > function($scope, $http) { > $http.get('phones/phones.json').success(function(data) { > $scope.phones = data; > }); > }*]*); > > I'm a newbie, so tell me if I'm missing something. > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
