{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.io/issues/2910","repository_url":"https://api.github.com/repos/angular/angular.io","labels_url":"https://api.github.com/repos/angular/angular.io/issues/2910/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.io/issues/2910/comments","events_url":"https://api.github.com/repos/angular/angular.io/issues/2910/events","html_url":"https://github.com/angular/angular.io/issues/2910","id":192498344,"number":2910,"title":"Test docs \"Always get the service from an injector\"","user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-30T07:54:46Z","updated_at":"2016-12-01T00:09:16Z","closed_at":null,"body":"I don't understand what this means. \r\n\r\nhttps://github.com/angular/angular.io/blob/424645e1df0a39a9318c68a0994530f71e1c293f/public/docs/ts/latest/guide/testing.jade#L633\r\n\r\nA few paragraphs above \r\n\r\n```ts\r\nuserServiceStub = {\r\n  isLoggedIn: true,\r\n  user: { name: 'Test User'}\r\n};\r\n```\r\n\r\nis provided with `useValue`\r\n\r\n    providers:    [ {provide: UserService, useValue: userServiceStub } ]\r\n\r\nHow can this lead to get a different instance?"},"comment":{"url":"https://api.github.com/repos/angular/angular.io/issues/comments/264037855","html_url":"https://github.com/angular/angular.io/issues/2910#issuecomment-264037855","issue_url":"https://api.github.com/repos/angular/angular.io/issues/2910","id":264037855,"user":{"login":"wardbell","id":129061,"avatar_url":"https://avatars.githubusercontent.com/u/129061?v=3","gravatar_id":"","url":"https://api.github.com/users/wardbell","html_url":"https://github.com/wardbell","followers_url":"https://api.github.com/users/wardbell/followers","following_url":"https://api.github.com/users/wardbell/following{/other_user}","gists_url":"https://api.github.com/users/wardbell/gists{/gist_id}","starred_url":"https://api.github.com/users/wardbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardbell/subscriptions","organizations_url":"https://api.github.com/users/wardbell/orgs","repos_url":"https://api.github.com/users/wardbell/repos","events_url":"https://api.github.com/users/wardbell/events{/privacy}","received_events_url":"https://api.github.com/users/wardbell/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T00:09:16Z","updated_at":"2016-12-01T00:09:16Z","body":"That answer didn't make sense to me. I still don't know why this is so. It has nothing to do with testing, btw. You get the same effect in a production app.\r\n\r\nI filed as a bug a long time ago. Still unresolved. See https://github.com/angular/angular/issues/10788"}}
{"actor":{"display_login":"wardbell"}}