{"action":"created","comment":{"url":"https://api.github.com/repos/angular/material2/pulls/comments/142219376","pull_request_review_id":66547572,"id":142219376,"diff_hunk":"@@ -428,9 +464,165 @@ describe('MatSelectionList', () => {\n   });\n });\n \n+describe('MatSelectionList with forms', () => {\n+\n+  beforeEach(async(() => {\n+    TestBed.configureTestingModule({\n+      imports: [MatListModule, FormsModule, ReactiveFormsModule],\n+      declarations: [\n+        SelectionListWithModel,\n+        SelectionListWithFormControl\n+      ]\n+    });\n+\n+    TestBed.compileComponents();\n+  }));\n+\n+  describe('and ngModel', () => {\n+    let fixture: ComponentFixture<SelectionListWithModel>;\n+    let selectionListDebug: DebugElement;\n+    let selectionList: MatSelectionList;\n+    let listOptions: MatListOption[];\n+    let ngModel: NgModel;\n+\n+    beforeEach(() => {\n+      fixture = TestBed.createComponent(SelectionListWithModel);\n+      fixture.detectChanges();\n+\n+      selectionListDebug = fixture.debugElement.query(By.directive(MatSelectionList));\n+      selectionList = selectionListDebug.componentInstance;\n+      ngModel = selectionListDebug.injector.get<NgModel>(NgModel);\n+      listOptions = fixture.debugElement.queryAll(By.directive(MatListOption))\n+        .map(optionDebugEl => optionDebugEl.componentInstance);\n+    });\n+\n+    it('should update the model if an option got selected', fakeAsync(() => {","path":"src/lib/list/selection-list.spec.ts","position":259,"original_position":259,"commit_id":"92d65d8eb05532ff9c42b56448bb47153be177ee","original_commit_id":"92d65d8eb05532ff9c42b56448bb47153be177ee","user":{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars0.githubusercontent.com/u/4450522?v=4","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false},"body":"Switch the name here to \"should update the model if an option got selected **programmatically**`? Otherwise it's very close to `should update the model if an option got clicked`.","created_at":"2017-10-02T18:34:01Z","updated_at":"2017-10-02T18:35:12Z","html_url":"https://github.com/angular/material2/pull/7456#discussion_r142219376","pull_request_url":"https://api.github.com/repos/angular/material2/pulls/7456","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/comments/142219376"},"html":{"href":"https://github.com/angular/material2/pull/7456#discussion_r142219376"},"pull_request":{"href":"https://api.github.com/repos/angular/material2/pulls/7456"}}},"pull_request":{"url":"https://api.github.com/repos/angular/material2/pulls/7456","id":144080477,"html_url":"https://github.com/angular/material2/pull/7456","diff_url":"https://github.com/angular/material2/pull/7456.diff","patch_url":"https://github.com/angular/material2/pull/7456.patch","issue_url":"https://api.github.com/repos/angular/material2/issues/7456","number":7456,"state":"open","locked":false,"title":"feat(selection-list): support for ngModel","user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars3.githubusercontent.com/u/4987015?v=4","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"body":"* Adds support for NgModel to the selection-list.\r\n\r\nFixes #6896\r\n\r\n**Note**: Based on top of #7334 ","created_at":"2017-10-01T17:45:18Z","updated_at":"2017-10-02T18:35:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"313dbde0911d7710e6335c473b3e8a6b54630757","assignee":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars3.githubusercontent.com/u/838736?v=4","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"assignees":[{"login":"jelbourn","id":838736,"avatar_url":"https://avatars3.githubusercontent.com/u/838736?v=4","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},{"login":"crisbeto","id":4450522,"avatar_url":"https://avatars0.githubusercontent.com/u/4450522?v=4","gravatar_id":"","url":"https://api.github.com/users/crisbeto","html_url":"https://github.com/crisbeto","followers_url":"https://api.github.com/users/crisbeto/followers","following_url":"https://api.github.com/users/crisbeto/following{/other_user}","gists_url":"https://api.github.com/users/crisbeto/gists{/gist_id}","starred_url":"https://api.github.com/users/crisbeto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crisbeto/subscriptions","organizations_url":"https://api.github.com/users/crisbeto/orgs","repos_url":"https://api.github.com/users/crisbeto/repos","events_url":"https://api.github.com/users/crisbeto/events{/privacy}","received_events_url":"https://api.github.com/users/crisbeto/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"jelbourn","id":838736,"avatar_url":"https://avatars3.githubusercontent.com/u/838736?v=4","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/angular/material2/pulls/7456/commits","review_comments_url":"https://api.github.com/repos/angular/material2/pulls/7456/comments","review_comment_url":"https://api.github.com/repos/angular/material2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/material2/issues/7456/comments","statuses_url":"https://api.github.com/repos/angular/material2/statuses/92d65d8eb05532ff9c42b56448bb47153be177ee","head":{"label":"DevVersion:feat/selection-list-model","ref":"feat/selection-list-model","sha":"92d65d8eb05532ff9c42b56448bb47153be177ee","user":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars3.githubusercontent.com/u/4987015?v=4","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"repo":{"id":49230742,"name":"material2","full_name":"DevVersion/material2","owner":{"login":"DevVersion","id":4987015,"avatar_url":"https://avatars3.githubusercontent.com/u/4987015?v=4","gravatar_id":"","url":"https://api.github.com/users/DevVersion","html_url":"https://github.com/DevVersion","followers_url":"https://api.github.com/users/DevVersion/followers","following_url":"https://api.github.com/users/DevVersion/following{/other_user}","gists_url":"https://api.github.com/users/DevVersion/gists{/gist_id}","starred_url":"https://api.github.com/users/DevVersion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevVersion/subscriptions","organizations_url":"https://api.github.com/users/DevVersion/orgs","repos_url":"https://api.github.com/users/DevVersion/repos","events_url":"https://api.github.com/users/DevVersion/events{/privacy}","received_events_url":"https://api.github.com/users/DevVersion/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DevVersion/material2","description":"Material Design components for Angular 2","fork":true,"url":"https://api.github.com/repos/DevVersion/material2","forks_url":"https://api.github.com/repos/DevVersion/material2/forks","keys_url":"https://api.github.com/repos/DevVersion/material2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevVersion/material2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevVersion/material2/teams","hooks_url":"https://api.github.com/repos/DevVersion/material2/hooks","issue_events_url":"https://api.github.com/repos/DevVersion/material2/issues/events{/number}","events_url":"https://api.github.com/repos/DevVersion/material2/events","assignees_url":"https://api.github.com/repos/DevVersion/material2/assignees{/user}","branches_url":"https://api.github.com/repos/DevVersion/material2/branches{/branch}","tags_url":"https://api.github.com/repos/DevVersion/material2/tags","blobs_url":"https://api.github.com/repos/DevVersion/material2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevVersion/material2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevVersion/material2/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevVersion/material2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevVersion/material2/statuses/{sha}","languages_url":"https://api.github.com/repos/DevVersion/material2/languages","stargazers_url":"https://api.github.com/repos/DevVersion/material2/stargazers","contributors_url":"https://api.github.com/repos/DevVersion/material2/contributors","subscribers_url":"https://api.github.com/repos/DevVersion/material2/subscribers","subscription_url":"https://api.github.com/repos/DevVersion/material2/subscription","commits_url":"https://api.github.com/repos/DevVersion/material2/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevVersion/material2/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevVersion/material2/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevVersion/material2/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevVersion/material2/contents/{+path}","compare_url":"https://api.github.com/repos/DevVersion/material2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevVersion/material2/merges","archive_url":"https://api.github.com/repos/DevVersion/material2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevVersion/material2/downloads","issues_url":"https://api.github.com/repos/DevVersion/material2/issues{/number}","pulls_url":"https://api.github.com/repos/DevVersion/material2/pulls{/number}","milestones_url":"https://api.github.com/repos/DevVersion/material2/milestones{/number}","notifications_url":"https://api.github.com/repos/DevVersion/material2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevVersion/material2/labels{/name}","releases_url":"https://api.github.com/repos/DevVersion/material2/releases{/id}","deployments_url":"https://api.github.com/repos/DevVersion/material2/deployments","created_at":"2016-01-07T21:05:43Z","updated_at":"2017-06-19T13:06:28Z","pushed_at":"2017-10-02T16:24:16Z","git_url":"git://github.com/DevVersion/material2.git","ssh_url":"git@github.com:DevVersion/material2.git","clone_url":"https://github.com/DevVersion/material2.git","svn_url":"https://github.com/DevVersion/material2","homepage":"","size":9490,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"01622b1c005c1ebbf720247cea1ef0ea0907137d","user":{"login":"angular","id":139426,"avatar_url":"https://avatars3.githubusercontent.com/u/139426?v=4","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":49016322,"name":"material2","full_name":"angular/material2","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars3.githubusercontent.com/u/139426?v=4","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/material2","description":"Material Design components for Angular","fork":false,"url":"https://api.github.com/repos/angular/material2","forks_url":"https://api.github.com/repos/angular/material2/forks","keys_url":"https://api.github.com/repos/angular/material2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/material2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/material2/teams","hooks_url":"https://api.github.com/repos/angular/material2/hooks","issue_events_url":"https://api.github.com/repos/angular/material2/issues/events{/number}","events_url":"https://api.github.com/repos/angular/material2/events","assignees_url":"https://api.github.com/repos/angular/material2/assignees{/user}","branches_url":"https://api.github.com/repos/angular/material2/branches{/branch}","tags_url":"https://api.github.com/repos/angular/material2/tags","blobs_url":"https://api.github.com/repos/angular/material2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/material2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/material2/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/material2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/material2/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/material2/languages","stargazers_url":"https://api.github.com/repos/angular/material2/stargazers","contributors_url":"https://api.github.com/repos/angular/material2/contributors","subscribers_url":"https://api.github.com/repos/angular/material2/subscribers","subscription_url":"https://api.github.com/repos/angular/material2/subscription","commits_url":"https://api.github.com/repos/angular/material2/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/material2/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/material2/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/material2/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/material2/contents/{+path}","compare_url":"https://api.github.com/repos/angular/material2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/material2/merges","archive_url":"https://api.github.com/repos/angular/material2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/material2/downloads","issues_url":"https://api.github.com/repos/angular/material2/issues{/number}","pulls_url":"https://api.github.com/repos/angular/material2/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/material2/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/material2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/material2/labels{/name}","releases_url":"https://api.github.com/repos/angular/material2/releases{/id}","deployments_url":"https://api.github.com/repos/angular/material2/deployments","created_at":"2016-01-04T18:50:02Z","updated_at":"2017-10-02T16:19:37Z","pushed_at":"2017-10-02T18:21:24Z","git_url":"git://github.com/angular/material2.git","ssh_url":"git@github.com:angular/material2.git","clone_url":"https://github.com/angular/material2.git","svn_url":"https://github.com/angular/material2","homepage":"https://material.angular.io","size":9371,"stargazers_count":11078,"watchers_count":11078,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2601,"mirror_url":null,"open_issues_count":808,"forks":2601,"open_issues":808,"watchers":11078,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/material2/pulls/7456"},"html":{"href":"https://github.com/angular/material2/pull/7456"},"issue":{"href":"https://api.github.com/repos/angular/material2/issues/7456"},"comments":{"href":"https://api.github.com/repos/angular/material2/issues/7456/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/material2/pulls/7456/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/material2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/material2/pulls/7456/commits"},"statuses":{"href":"https://api.github.com/repos/angular/material2/statuses/92d65d8eb05532ff9c42b56448bb47153be177ee"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"crisbeto"}}