{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/6864","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/6864/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/6864/comments","events_url":"https://api.github.com/repos/angular/material2/issues/6864/events","html_url":"https://github.com/angular/material2/issues/6864","id":255487426,"number":6864,"title":"[MdListOption] value always boolean, selectChange/deselected events don't fire","user":{"login":"dereekb","id":3586580,"avatar_url":"https://avatars3.githubusercontent.com/u/3586580?v=4","gravatar_id":"","url":"https://api.github.com/users/dereekb","html_url":"https://github.com/dereekb","followers_url":"https://api.github.com/users/dereekb/followers","following_url":"https://api.github.com/users/dereekb/following{/other_user}","gists_url":"https://api.github.com/users/dereekb/gists{/gist_id}","starred_url":"https://api.github.com/users/dereekb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereekb/subscriptions","organizations_url":"https://api.github.com/users/dereekb/orgs","repos_url":"https://api.github.com/users/dereekb/repos","events_url":"https://api.github.com/users/dereekb/events{/privacy}","received_events_url":"https://api.github.com/users/dereekb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-06T05:42:51Z","updated_at":"2017-09-19T19:42:47Z","closed_at":null,"author_association":"NONE","body":"#### Bug, feature request, or proposal:\r\n\r\nMdListOption's output EventEmitters selectChange, and deselected do not fire when the item is selected/deselected.\r\n\r\n#### What is the expected behavior?\r\n\r\nThey should activate the angular expression bound to them.\r\n\r\n#### What is the current behavior?\r\n\r\nHere's the code block I'm working with:\r\n\r\n```\r\n<md-selection-list class=\"selection-content-list\">\r\n    <md-list-option class=\"list-item\" (selectChange)=\"selectedItem($event)\" (deselected)=\"deselectedItem($event)\" [disabled]=\"selectionItem.disabled\" *ngFor=\"let selectionItem of (elements | async)\">\r\n        <md-icon mdListIcon>folder</md-icon>\r\n        <h4 mdLine>{{ selectionItem.name }}</h4>\r\n    </md-list-option>\r\n</md-selection-list>\r\n```\r\n\r\nThe items visually update when being clicked on and off. \r\nThe MdSelectionList's selectedOptions variable updates properly.\r\nThe selectChange and deselected EventEmitters are never activated.\r\n\r\n#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?\r\n\r\nAngular Material 2.0.0-beta.10\r\n\r\n#### Is there anything else we should know?\r\n\r\nLooking at the [current code](https://github.com/angular/material2/blob/fbce67d219aaa6e903aec0d261634d16f5ae7dcc/src/lib/list/selection-list.ts), it looks like they aren't ever used or references apart from their declarations.\r\n\r\nThe focus and destroyed events seem to emit fine though.\r\n\r\nAlso the value variable for MdListOption is _coerced to a boolean value_ so even using selectedOptions doesn't make the MdListOption useable."},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/330651782","html_url":"https://github.com/angular/material2/issues/6864#issuecomment-330651782","issue_url":"https://api.github.com/repos/angular/material2/issues/6864","id":330651782,"user":{"login":"dereekb","id":3586580,"avatar_url":"https://avatars3.githubusercontent.com/u/3586580?v=4","gravatar_id":"","url":"https://api.github.com/users/dereekb","html_url":"https://github.com/dereekb","followers_url":"https://api.github.com/users/dereekb/followers","following_url":"https://api.github.com/users/dereekb/following{/other_user}","gists_url":"https://api.github.com/users/dereekb/gists{/gist_id}","starred_url":"https://api.github.com/users/dereekb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dereekb/subscriptions","organizations_url":"https://api.github.com/users/dereekb/orgs","repos_url":"https://api.github.com/users/dereekb/repos","events_url":"https://api.github.com/users/dereekb/events{/privacy}","received_events_url":"https://api.github.com/users/dereekb/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T19:42:47Z","updated_at":"2017-09-19T19:42:47Z","author_association":"NONE","body":"Yea, I think that would be a good idea since this issue has been resolved."}}
{"actor":{"display_login":"dereekb"}}