In what Javascript file “abp.services.app” is defined?

℡╲_俬逩灬. 提交于 2019-12-08 03:02:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!