Attempting to obfuscate my angularjs application using mangling is resulting in an error. I have been advised to use ngmin to address this issue. Following this advice, I have successfully used ngmin to properly encapsulate my controller code within an array, as required by Angular. I can verify that ngmin is functioning properly and all of my code is encapsulated. The error only occurs when attempting to mangle the code; using mangle:false resolves the issue. Can someone confirm whether mangling is supposed to work correctly or if there are other scenarios, aside from the array problem, that could be causing mangling to fail.
Many thanks.