{"action":"created","issue":{"url":"https://api.github.com/repos/salemdar/angular2-cookie/issues/24","repository_url":"https://api.github.com/repos/salemdar/angular2-cookie","labels_url":"https://api.github.com/repos/salemdar/angular2-cookie/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/salemdar/angular2-cookie/issues/24/comments","events_url":"https://api.github.com/repos/salemdar/angular2-cookie/issues/24/events","html_url":"https://github.com/salemdar/angular2-cookie/issues/24","id":181655034,"number":24,"title":"No provider for CookieOptions! in angular2-cookie 1.2.4","user":{"login":"willypuzzle","id":18305386,"avatar_url":"https://avatars.githubusercontent.com/u/18305386?v=3","gravatar_id":"","url":"https://api.github.com/users/willypuzzle","html_url":"https://github.com/willypuzzle","followers_url":"https://api.github.com/users/willypuzzle/followers","following_url":"https://api.github.com/users/willypuzzle/following{/other_user}","gists_url":"https://api.github.com/users/willypuzzle/gists{/gist_id}","starred_url":"https://api.github.com/users/willypuzzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willypuzzle/subscriptions","organizations_url":"https://api.github.com/users/willypuzzle/orgs","repos_url":"https://api.github.com/users/willypuzzle/repos","events_url":"https://api.github.com/users/willypuzzle/events{/privacy}","received_events_url":"https://api.github.com/users/willypuzzle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-10-07T12:21:02Z","updated_at":"2016-12-22T18:55:17Z","closed_at":"2016-10-20T21:30:46Z","body":"My code compile clean but I got this \"No provider for CookieOptions!\" exception when I try to execute the code.\n\nNOTE: I read the installation instruction but they seems to be for older version of Angular2 (before rc-5).  I have followed the new Angular 2 way for providers addition (the way after rc-5). For instance:\n\n```\nimport {CookieService} from 'angular2-cookie/core';\n\n@NgModule({\n  ....\n  providers: [\n      CookieService\n  ]\n})\n```\n"},"comment":{"url":"https://api.github.com/repos/salemdar/angular2-cookie/issues/comments/268865917","html_url":"https://github.com/salemdar/angular2-cookie/issues/24#issuecomment-268865917","issue_url":"https://api.github.com/repos/salemdar/angular2-cookie/issues/24","id":268865917,"user":{"login":"nukuuk","id":12918767,"avatar_url":"https://avatars.githubusercontent.com/u/12918767?v=3","gravatar_id":"","url":"https://api.github.com/users/nukuuk","html_url":"https://github.com/nukuuk","followers_url":"https://api.github.com/users/nukuuk/followers","following_url":"https://api.github.com/users/nukuuk/following{/other_user}","gists_url":"https://api.github.com/users/nukuuk/gists{/gist_id}","starred_url":"https://api.github.com/users/nukuuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nukuuk/subscriptions","organizations_url":"https://api.github.com/users/nukuuk/orgs","repos_url":"https://api.github.com/users/nukuuk/repos","events_url":"https://api.github.com/users/nukuuk/events{/privacy}","received_events_url":"https://api.github.com/users/nukuuk/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T18:55:17Z","updated_at":"2016-12-22T18:55:17Z","body":"I am using angular-cli (1.0.0-beta.24) and am getting this error only when I do an AOT build.  \r\n\r\n> ng serve --> this works\r\n> ng serve -prod   -->this works \r\n> ng serve -aot   -->this does NOT work: Error: No provider for CookieOptions!\r\n> ng serve -prod -aot -->this does NOT work: Error: No provider for CookieOptions!\r\n"}}
{"actor":{"display_login":"nukuuk"}}