Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In what Javascript file "abp.services.app" is defined?

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.

like image 286
Martin Avatar asked Oct 24 '25 18:10

Martin


1 Answers

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).

like image 175
hikalkan Avatar answered Oct 26 '25 21:10

hikalkan