troyanskiy / ngx-resource

Resource (REST) Client for Angular 2
http://troyanskiy.github.io/ngx-resource/
200 stars 46 forks source link

ResourceAction decorator not working #198

Open w3sami opened 2 years ago

w3sami commented 2 years ago

hi,

been using the old lib in production for many years now and loving it! however, now with a new project I cant seem to get this working at all, any

@ResourceAction({ method: ResourceRequestMethod.Post, path: '/{id}', }) public saving!: IResourceMethodPromise<{id: number}, IPage>;

is just wont make any ajax request, I get no errors* pre or runtime :/ the prebuilt ones from ResourceCRUDPromise DO work correctly. Any ideas, I've been stabbing at this for a full day now

*I do get TS2564: Property 'saving' has no initializer and is not definitely assigned in the constructor., but that should be safe to ignore, right? (using strict mode)

sadly, currently using my own manual implementation now, since I can't get this to work