angular-dynamic-layout icon indicating copy to clipboard operation
angular-dynamic-layout copied to clipboard

Unsafe minification using ng-min or ng-annotate

Open koolshams opened this issue 11 years ago • 2 comments

Good plugin. I am trying to use it in one of my projects.

Need to make the code minifier friendly. Now when i minify it it throws an error. To make minifier friendly. To make it minifier friendly code like

module.directive('directive1', directive1)
function directive1($scope){
}

Must be converted into

module.directive('directive1', function($scope){}).

Do you have any plan for this. Any way i need this. Please comment so that i will submit a pull request.

Thanks

koolshams avatar Sep 05 '15 10:09 koolshams

Thanks, yes actually it was the case before this was submitted. Feel free to make the changes to make it minification friendly once more.

tristanguigue avatar Sep 05 '15 14:09 tristanguigue

Pull request submitted. Please have a look. https://github.com/tristanguigue/angular-dynamic-layout/pull/18 I changed only where needed. Avoided too much changes. Please have a look.

Thanks.

koolshams avatar Sep 06 '15 04:09 koolshams