Angular.module微小错误 [英] Angular.module minification bug

查看:167
本文介绍了Angular.module微小错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有可恨的时间试图弄清楚为什么微小不工作。

Having the darnedest time trying to figure out why minification is not working.

我已经通过一个数组对象注入我的供应商之前在网络上每许多建议功能,但仍然未知提供商:aProvider< - 一个

I have injected via an array object my providers prior the function per numerous suggestions across the web and yet still "Unknown provider: aProvider <- a"

常规:

var app = angular.module('bpwApp', ['ui.bootstrap', 'ui', 'myTabs'])
    .config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider){
    $routeProvider.
        when('/', {templateUrl: 'partials/home.jade', controller: HomeCtrl});

    $locationProvider.html5Mode(true);
    }])

缩小的:

var app = angular.module('bpwApp', ['ui.bootstrap', 'ui', 'myTabs'])
    .config(['$routeProvider', '$locationProvider', function(a, b){
    a.
        when('/', {templateUrl: 'partials/home.jade', controller: HomeCtrl});

    b.html5Mode(true);
    }])

任何建议将不胜感激!

Any suggestion would be much obliged!

推荐答案

NG-分钟 AndrewM96的建议是正确的。

AndrewM96 suggestion of ng-min is right.

对齐和空白事项丑化以及棱角分明。

The alignment and white space matters to Uglify as well as Angular.

这篇关于Angular.module微小错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆