ngx-resource
ngx-resource copied to clipboard
ResourceAction decorator not working
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