一、angular根据环境配置禁用调试:
// Disable debug data for production environment
// @link https://docs.angularjs.org/guide/production
$compileProvider.debugInfoEnabled( app.applicationEnvironment !== 'production');
$logProvider.debugEnabled( app.applicationEnvironment !== 'production');
上面就是根据当前的环境是不是生产环境,来禁用