任何人都可以帮我解决这个问题吗?
好吧我正在使用Mean.js(我是一个新手)并且在我的家庭控制器上我试图调用我的Jquery依赖性女巫来了我买的模板。 这是我正在使用的代码。
'use strict';angular.module('core').controller('HomeController', ['$scope', '$http', '$location', 'Authentication',
function($scope, $http, $location, Authentication) {
// This provides Authentication context.
$scope.authentication = Authentication;
if (!$scope.authentication.user) $location.path('/signin');
$scope.inicio = function(){
jQuery(document).ready(function() {
App.setPage("index");
App.init();
});
};
}]);
And calling my JS from config/env/all.js and here is it
'public/lib/angular/angular.js',
'public/lib/angular-resource/angular-resource.js',
'public/lib/angular-cookies/angular-cookies.js',
'public/lib/angular-animate/angular-animate.js',
'public/lib/angular-touch/angular-touch.js',
'public/lib/angular-sanitize/angular-sanitize.js',
'public/lib/angular-ui-router/release/angular-ui-router.js',
'public/lib/angular-ui-utils/ui-utils.js',
'public/lib/angular-bootstrap/ui-bootstrap-tpls.js',
'public/tema/js/jquery/jquery-2.0.3.min.js',
'public/tema/js/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js',
'public/tema/bootstrap-dist/js/bootstrap.min.js',
'public/tema/js/uniform/jquery.uniform.min.js',
'public/tema/js/backstretch/jquery.backstretch.min.js',
'public/tema/js/bootstrap-daterangepicker/moment.min.js',
'public/tema/js/bootstrap-daterangepicker/daterangepicker.min.js',
'public/tema/js/jQuery-slimScroll-1.3.0/jquery.slimscroll.min.js',
'public/tema/js/jQuery-slimScroll-1.3.0/slimScrollHorizontal.min.js',
'public/tema/js/jQuery-BlockUI/jquery.blockUI.min.js',
'public/tema/js/sparklines/jquery.sparkline.min.js',
'public/tema/js/jquery-easing/jquery.easing.min.js',
'public/tema/js/easypiechart/jquery.easypiechart.min.js',
'public/tema/js/flot/jquery.flot.min.js',
'public/tema/js/flot/jquery.flot.time.min.js',
'public/tema/js/flot/jquery.flot.selection.min.js',
'public/tema/js/flot/jquery.flot.resize.min.js',
'public/tema/js/flot/jquery.flot.pie.min.js',
'public/tema/js/flot/jquery.flot.stack.min.js',
'public/tema/js/flot/jquery.flot.crosshair.min.js',
'public/tema/js/jquery-todo/js/paddystodolist.js',
'public/tema/js/timeago/jquery.timeago.min.js',
'public/tema/js/fullcalendar/fullcalendar.min.js',
'public/tema/js/jQuery-Cookie/jquery.cookie.min.js',
'public/tema/js/gritter/js/jquery.gritter.min.js',
'public/tema/js/script.js',
有些依赖项确实有效,但有些非常奇怪,如果我从控制台(Google Chrome)调用它,一切正常,但无法通过控制器使其工作。 对不起我的英语很糟糕.. 并感谢您的帮助