Angularjs While attache angular.js文件控制台抛出错误:Error:modulerr

Angularjs While attache angular.js文件控制台抛出错误:Error:modulerr,angularjs,Angularjs,我想将angular JS文件附加到我的项目 <script src="js/global/angular.min.js" type="text/javascript"></script> <script src="js/global/angular-route.min.js" type="text/javascript"></script> JS自定义文件 (function () { var app = angular

我想将angular JS文件附加到我的项目

<script src="js/global/angular.min.js" type="text/javascript"></script>        
<script src="js/global/angular-route.min.js" type="text/javascript"></script>
JS自定义文件

(function () {
    var app = angular.module('Demo', [
        'ngRoute'
    ]);

    app.controller('TemplateController', function () {

    });

    app.directive('leftMenu', function () {
        return{
            restrict: 'E',
            templateUrl: 'views/left-menu.html'
        };
    });

    app.controller('UserfilterController', function () {
        this.int_male_counter = this.int_female_counter = 5;
        this.str_sort_by = {
            prop_name: 'f_name',
            order: 'asc'
        };
        this.obj_users = new Users(this.int_male_counter, this.int_female_counter).list;
        this.fn_set_sorting = function (str) {
            if (this.str_sort_by.prop_name === str) {
                this.str_sort_by.order = this.str_sort_by.order === 'des' ? 'asc' : 'des';
            } else {
                this.str_sort_by.order = 'asc';
                this.str_sort_by.prop_name = str;
            }
            this.obj_users.sortByObjKeyVal(this.str_sort_by.prop_name, this.str_sort_by.order);
        };
        this.fn_setlected_filter = function (str) {
            return str === this.str_sort_by.prop_name;
        };
        this.fn_is_descending = function () {
            return this.str_sort_by.order === 'des';
        };
        this.fn_return_array_by_integer = function (int) {
            return new Array(int);
        };
    });


    app.controller('LeftMenuController', function () {
        this.isMenuOpen = true;
    });

})();

添加到main index.html文件中的头标记尝试以下托管库:。开发时也不要使用min版本。@simpe使用hosted时没有区别files@underscore不幸的是,这不起作用,那么问题就出在别处了。发布index.html的代码
(function () {
    var app = angular.module('Demo', [
        'ngRoute'
    ]);

    app.controller('TemplateController', function () {

    });

    app.directive('leftMenu', function () {
        return{
            restrict: 'E',
            templateUrl: 'views/left-menu.html'
        };
    });

    app.controller('UserfilterController', function () {
        this.int_male_counter = this.int_female_counter = 5;
        this.str_sort_by = {
            prop_name: 'f_name',
            order: 'asc'
        };
        this.obj_users = new Users(this.int_male_counter, this.int_female_counter).list;
        this.fn_set_sorting = function (str) {
            if (this.str_sort_by.prop_name === str) {
                this.str_sort_by.order = this.str_sort_by.order === 'des' ? 'asc' : 'des';
            } else {
                this.str_sort_by.order = 'asc';
                this.str_sort_by.prop_name = str;
            }
            this.obj_users.sortByObjKeyVal(this.str_sort_by.prop_name, this.str_sort_by.order);
        };
        this.fn_setlected_filter = function (str) {
            return str === this.str_sort_by.prop_name;
        };
        this.fn_is_descending = function () {
            return this.str_sort_by.order === 'des';
        };
        this.fn_return_array_by_integer = function (int) {
            return new Array(int);
        };
    });


    app.controller('LeftMenuController', function () {
        this.isMenuOpen = true;
    });

})();