How to call Application Services in ASP.Net Boiler Plate MVC Project

Viewed 808

at the moment I have two projects. A "Backend" MVC project for managing information (working completely fine). I am now building a "Frontend" MVC project. I am using the provided demos from ASP NET ZEROS.

i have created app services and within my Backend app services, I can access the app services and the methods within that services without any issues like below.

var _listingService = abp.services.app.listings;

I am trying to do the exact same in my other project but unfortunately, I am unable to access the services. abp object is available but services is undefined

enter image description here

May I ask, how do I get access to my app services from another application? I think something else has to be configured before I can use it, but I am not entirely sure what.

Update: 2020-08-26

I was able to add this line

<script src="~/AbpServiceProxies/GetAll?type=jquery" type="text/javascript"></script>

This created a proxy from my controller to javascript. I can then link my controllers to my appservices. But I am hoping going from javascript straight to appservices.

1 Answers
Related