问题
I am integrating my own template to ASP.NET Boilerplate and now I am getting JavaScript errors.
(function() {
$(function() {
var _userService = abp.services.app.user; <-- ERROR HERE
})
});
In what Javascript file "abp.services.app" is defined? I must be missing to include one of the Javascript file.
回答1:
It's defined dynamically when you include AbpServiceProxies/GetAll
like
https://github.com/aspnetboilerplate/module-zero-template/blob/master/src/AbpCompanyName.AbpProjectName.WebMpa/Views/Shared/_Layout.cshtml#L125 (this is for ASP.NET MVC 5.x).
来源:https://stackoverflow.com/questions/45555472/in-what-javascript-file-abp-services-app-is-defined