AngularJS and Uglifier don't mix well.

Uglifier’s mangling messes with AngularJS. To turn it off you should do something like…

# config.assets.js_compressor = :uglifier
config.assets.js_compressor = Uglifier.new(mangle: false) if defined? Uglifier