Closed ltvan closed 7 years ago
I'm working on a project which the service proxy is generated with the name like this: `abp.services.app.serviceName' http://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API#DocAngularSupport
Currently I'm using a little hack:
var ngAnnotatePlugin = { init: function (ctx) { ctx.rename = { get: function (name) { if (/AppService$/.test(name)) { return 'abp.services.app.' + name.replace('AppService', '') } return name } } }, match: function (node) { } }
I'm looking for the ability to pass a callback/plugin to rename services.
Thanks.
Or, something like this is more convenient if we have some services which does not follow any convention:
/* @ngInject { userService: 'abp.services.app.user', something:'some-thing' } */
I'm working on a project which the service proxy is generated with the name like this: `abp.services.app.serviceName' http://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API#DocAngularSupport
Currently I'm using a little hack:
I'm looking for the ability to pass a callback/plugin to rename services.
Thanks.