{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2218","repository_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack","labels_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2218/labels{/name}","comments_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2218/comments","events_url":"https://api.github.com/repos/angular-fullstack/generator-angular-fullstack/issues/2218/events","html_url":"https://github.com/angular-fullstack/generator-angular-fullstack/issues/2218","id":175881796,"number":2218,"title":"New client Service/Factory","user":{"login":"Abdizriel","id":6214456,"avatar_url":"https://avatars.githubusercontent.com/u/6214456?v=3","gravatar_id":"","url":"https://api.github.com/users/Abdizriel","html_url":"https://github.com/Abdizriel","followers_url":"https://api.github.com/users/Abdizriel/followers","following_url":"https://api.github.com/users/Abdizriel/following{/other_user}","gists_url":"https://api.github.com/users/Abdizriel/gists{/gist_id}","starred_url":"https://api.github.com/users/Abdizriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abdizriel/subscriptions","organizations_url":"https://api.github.com/users/Abdizriel/orgs","repos_url":"https://api.github.com/users/Abdizriel/repos","events_url":"https://api.github.com/users/Abdizriel/events{/privacy}","received_events_url":"https://api.github.com/users/Abdizriel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-08T22:33:26Z","updated_at":"2016-09-08T22:33:26Z","closed_at":null,"body":" - [ x ] I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.\r\n\r\nItem | Version\r\n----- | -----\r\ngenerator-angular-fullstack | 4.0.1\r\nNode | 6.5.0\r\nnpm | 3.10.3\r\nOperating System | OS X 10\r\n\r\nItem | Answer\r\n----- | -----\r\nTranspiler | Babel\r\nMarkup | HTML\r\nCSS | SCSS \r\nRouter | ui-router\r\nClient Tests | Mocha\r\nDB | SQL\r\nAuth | Y\r\n\r\nI am trying to add service/factory for my component and initialize it in $onInit.\r\nHowever I am getting this error:\r\n\r\n```\r\nangular.js:13920 Error: [ng:areq] Argument 'fn' is not a function, got undefined\r\n```\r\n\r\nYou can find what I am doing there: https://gist.github.com/Abdizriel/c170e7579c8d27562743c429d4b2a80c\r\n\r\nI have tried few different methods like instead of class export function with services object inside like I was doing in pre 4.0 version or try both methods with export default and results was similar or information that there is no provider for ActivityService.\r\n\r\nI would be very glad if somebody could help me solve this issue."}}
{"actor":{"display_login":"Abdizriel"}}