{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/material2/issues/11812","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/11812/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/11812/comments","events_url":"https://api.github.com/repos/angular/material2/issues/11812/events","html_url":"https://github.com/angular/material2/issues/11812","id":333034268,"node_id":"MDU6SXNzdWUzMzMwMzQyNjg=","number":11812,"title":"mat-slide-toggle component's toggle() method does not emit change event","user":{"login":"ychaikin","id":4999744,"node_id":"MDQ6VXNlcjQ5OTk3NDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4999744?v=4","gravatar_id":"","url":"https://api.github.com/users/ychaikin","html_url":"https://github.com/ychaikin","followers_url":"https://api.github.com/users/ychaikin/followers","following_url":"https://api.github.com/users/ychaikin/following{/other_user}","gists_url":"https://api.github.com/users/ychaikin/gists{/gist_id}","starred_url":"https://api.github.com/users/ychaikin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ychaikin/subscriptions","organizations_url":"https://api.github.com/users/ychaikin/orgs","repos_url":"https://api.github.com/users/ychaikin/repos","events_url":"https://api.github.com/users/ychaikin/events{/privacy}","received_events_url":"https://api.github.com/users/ychaikin/received_events","type":"User","site_admin":false},"labels":[{"id":311421688,"node_id":"MDU6TGFiZWwzMTE0MjE2ODg=","url":"https://api.github.com/repos/angular/material2/labels/P3","name":"P3","color":"fad8c7","default":false},{"id":377364335,"node_id":"MDU6TGFiZWwzNzczNjQzMzU=","url":"https://api.github.com/repos/angular/material2/labels/has%20pr","name":"has pr","color":"c2e0c6","default":false}],"state":"closed","locked":false,"assignee":{"login":"crisbeto","id":4450522,"node_id":"MDQ6VXNlcjQ0NTA1MjI=","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},"assignees":[{"login":"crisbeto","id":4450522,"node_id":"MDQ6VXNlcjQ0NTA1MjI=","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}],"milestone":null,"comments":1,"created_at":"2018-06-17T04:24:09Z","updated_at":"2018-06-28T19:30:22Z","closed_at":"2018-06-28T19:30:22Z","author_association":"NONE","body":"#### Bug, feature request, or proposal:\r\nBug\r\n\r\n#### What is the expected behavior?\r\nWhen calling component's `toggle` method programmatically, `change` event should be emitted.\r\n\r\n#### What is the current behavior?\r\nSimply flips the boolean value of its `checked` property.\r\n\r\n#### What are the steps to reproduce?\r\nStackBlitz code sample with the test:\r\nhttps://stackblitz.com/edit/angular-material-slide-toggle-test-qzbvad?file=app%2Fmat-slide-toggle-bug.component.spec.ts\r\n\r\n#### What is the use-case or motivation for changing an existing behavior?\r\nThis would be very useful when testing behavior, but I can see how it would be useful for some programmatic toggling during regular use as well.\r\n\r\n#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?\r\nAll\r\n\r\n#### Is there anything else we should know?\r\nno"}}
{"actor":{"display_login":"josephperrott"}}