все еще правильно, чтобы мой модуль был написан таким образом? выход только показывает; ; и в консоли есть эта ошибка
Ошибка при сбое: [$ injector: modulerr] http://errors.angularjs.org/1.5.5/ $ инжектор/модуль?
var angularFormsApp = angular.module('angularFormsApp', ['ngRoute', 'ui.bootstrap']);
angularFormsApp.config(
["$routeProvider","$locationProvider",
function ($routeProvider, $locationProvider) {
$routeProvider
.when("/home", {
templateUrl: "app/Home.html",
controller: "HomeController"
})
.when("/newAccountForm", {
templateUrl: "app/AccountForm/afTemplate.html",
controller: "afController"
})
.when("/updateAccount/:id", {
templateUrl: "app/AccountForm/afTemplate.html",
controller: "afController"
})
.otherwise({
redirectTo: "/home"
});
$locationProvider.html5Mode(true).hashPrefix('!');
}]);
и это мои связки
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-{version}.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.validate*"));
// Use the development version of Modernizr to develop with and learn from. Then, when you're
// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
bundles.Add(new StyleBundle("~/bundles/asha/style").Include(
"~/Content/bootstrap.css",
"~/Content/app.css"));
bundles.Add(new ScriptBundle("~/bundles/asha/script").Include(
"~/Scripts/angular.js",
"~/Scripts/angular-route.js",
"~/Scripts/angular-ui/ui.bootstrap-tpls.js",
"~/app/AngularFormsApp.js",
"~/app/DataService.js",
"~/app/ValidationDirective.js",
"~/app/EmployeeForm/efController.js",
"~/app/EmployeeForm/efDirective.js"));
BundleTable.EnableOptimizations = true;
}
так как это ошибка модуля инжектора, которая означает, что либо угловые-router.js ИЛИ ui.bootstrap пути неправильны.
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.5/$injector/modulerr