你好,我正在创建与ASP.NET MVC和Angular js的应用程序。我不能使用第三方js与角js和ASP.NET MVC
一切都运行良好,但是当我要使用的角度JS任何第三方JS是不允许做...
我已经创建了三个js文件。
1)app.js
var app;
(function() {
app = angular.module("ANG", []);
app.factory('GlobalService', function() {
return {
urlBase: 'myserviceurl/',
UserName: '',
UserRole: ''
};
});
})();
2)Controller.js
app.controller("CustomerCtrl", ["$scope", "$q", "VendorService", "CustomerService", "$filter", function ($scope, $q, vendorService, customerService, $filter){
//My code here
}
]);
3)Service.js
app.service('VendorService', ["$http", "$q", "GlobalService", function ($http, $q, globalService) {
//My service calling
}]);
4)实施了检视
<html lang="en" id="htmlMainPage" ng-app="ANG">
我想用multiselection JS来实现多选下拉列表。
我已经完成了下面的一行更改只在控制器和查看进一步的变化。
app.js
app = angular.module("ANG", ["angularjs-dropdown-multiselect"]);
它运行良好,以及,但谁也用这个其他页面app.js给我一个错误。
你在哪里给参考多选js? –
在查看页面中,我的意思是只在页面中需要的位置。 –