{"action":"created","issue":{"url":"https://api.github.com/repos/troyanskiy/ng2-resource-rest/issues/62","repository_url":"https://api.github.com/repos/troyanskiy/ng2-resource-rest","labels_url":"https://api.github.com/repos/troyanskiy/ng2-resource-rest/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/troyanskiy/ng2-resource-rest/issues/62/comments","events_url":"https://api.github.com/repos/troyanskiy/ng2-resource-rest/issues/62/events","html_url":"https://github.com/troyanskiy/ng2-resource-rest/issues/62","id":193835122,"number":62,"title":"Error: No provider for CustomResource with custom functions (data, callback) ","user":{"login":"growthclick","id":5842645,"avatar_url":"https://avatars.githubusercontent.com/u/5842645?v=3","gravatar_id":"","url":"https://api.github.com/users/growthclick","html_url":"https://github.com/growthclick","followers_url":"https://api.github.com/users/growthclick/followers","following_url":"https://api.github.com/users/growthclick/following{/other_user}","gists_url":"https://api.github.com/users/growthclick/gists{/gist_id}","starred_url":"https://api.github.com/users/growthclick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/growthclick/subscriptions","organizations_url":"https://api.github.com/users/growthclick/orgs","repos_url":"https://api.github.com/users/growthclick/repos","events_url":"https://api.github.com/users/growthclick/events{/privacy}","received_events_url":"https://api.github.com/users/growthclick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-06T17:31:05Z","updated_at":"2016-12-06T17:54:18Z","closed_at":null,"body":"@troyanskiy Have there been some significant breaking changes in the last couple months? I'm struggling to get my resource classes (with custom functions like below) to work on 1.5.4. Here is an example of a custom function that used to work: \r\n\r\n  @ResourceAction({\r\n        method: RequestMethod.Get,  \r\n        path: '/request/{id}' // Will overwrite default path\r\n  })\r\n  public getById(data:any, callback?:Function): ResourceResult { return null; }\r\n\r\nIf I add <any> after ResourceResult, it will compile on TSC / JIT for development purposes (e.g. using Ionic serve with Ionic RC3), but when doing a production build, I'm running into errors like \"(Error: main.js:62534 Error: No provider for e!)\" where e is the resource class I'm trying to inject (as a service in a constructor).  \r\n\r\nBased on your examples / documentation, it seems like ResourceMethod might have replaced ResourceResult.  Is that correct and could you please share an example of how to do a custom function that accepts a flexible data parameter and executes a callback as in above? \r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/troyanskiy/ng2-resource-rest/issues/comments/265221622","html_url":"https://github.com/troyanskiy/ng2-resource-rest/issues/62#issuecomment-265221622","issue_url":"https://api.github.com/repos/troyanskiy/ng2-resource-rest/issues/62","id":265221622,"user":{"login":"growthclick","id":5842645,"avatar_url":"https://avatars.githubusercontent.com/u/5842645?v=3","gravatar_id":"","url":"https://api.github.com/users/growthclick","html_url":"https://github.com/growthclick","followers_url":"https://api.github.com/users/growthclick/followers","following_url":"https://api.github.com/users/growthclick/following{/other_user}","gists_url":"https://api.github.com/users/growthclick/gists{/gist_id}","starred_url":"https://api.github.com/users/growthclick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/growthclick/subscriptions","organizations_url":"https://api.github.com/users/growthclick/orgs","repos_url":"https://api.github.com/users/growthclick/repos","events_url":"https://api.github.com/users/growthclick/events{/privacy}","received_events_url":"https://api.github.com/users/growthclick/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T17:54:18Z","updated_at":"2016-12-06T17:54:18Z","body":"Okay, thanks for the help and feedback. I'll do some troubleshooting and let you know if I make any progress. "}}
{"actor":{"display_login":"growthclick"}}