0
dinhienhy created
Hi,
Angular controller can not call application service. Please review bellow code:
Angular controller:
angular.module('app').controller(controllerId, [
'abp.services.app.log4net',
function (log4netService) {
var vm = this;
}])
My application service:
public class Log4NetService : ApplicationService, ILog4NetService
{
.....
}
Chrome console throw an error (please review attachment picture):
3 Answer(s)
-
0
I think it should be 'abp.services.app.log4Net' instead of 'abp.services.app.log4net'.
For such cases, you can check auto-generated proxy:
<a class="postlink" href="http://your-url/">http://your-url/</a>api/AbpServiceProxies/GetAll?type=angular
-
0
Thanks for your support. It worked!
-
0
The best way to find which name of your service is access url /api/AbpServiceProxies/GetAll?type=angular you will find all services.