I have a piece of code that is functioning correctly:
angular.module('foo', []).config(
function($locationProvider) {
$locationProvider.html5Mode(true);
}
);
However, when the code is minified, it gets compressed and looks like this:
angular.module('foo', []).config(function(n) { n.html5Mode(true); });
Unfortunately, AngularJS crashes with an internal exception after this minification process. While I have an understanding of why this crash occurs, I am looking for a workaround. Can someone provide some guidance?