I am currently working on minimizing and obfuscating my Angular code, however I have run into a complication. I came across the "Note on minification" page at http://docs.angularjs.org/tutorial/step_05 which has been helpful, but I'm defining my controllers in this manner:
directive('itemlist', function () {
return {
restrict: 'AE',
scope: { apicall: '=', editable: '=', viewtype: '=', selectable: '=' },
controller: function ($scope, $http, $resource, $timeout, fileReader, framewidth, $dialog, errormsg) {
//Code
}
}
}
I need to modify how I inject dependencies into the controller in order to make it minimizable. Can you please advise on the best approach for this? Thank you.