{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/7172","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/7172/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/7172/comments","events_url":"https://api.github.com/repos/angular/material2/issues/7172/events","html_url":"https://github.com/angular/material2/issues/7172","id":258848093,"number":7172,"title":"Md-expansion panel opened and close events not firing on prod build","user":{"login":"tarasbobak","id":12515715,"avatar_url":"https://avatars2.githubusercontent.com/u/12515715?v=4","gravatar_id":"","url":"https://api.github.com/users/tarasbobak","html_url":"https://github.com/tarasbobak","followers_url":"https://api.github.com/users/tarasbobak/followers","following_url":"https://api.github.com/users/tarasbobak/following{/other_user}","gists_url":"https://api.github.com/users/tarasbobak/gists{/gist_id}","starred_url":"https://api.github.com/users/tarasbobak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarasbobak/subscriptions","organizations_url":"https://api.github.com/users/tarasbobak/orgs","repos_url":"https://api.github.com/users/tarasbobak/repos","events_url":"https://api.github.com/users/tarasbobak/events{/privacy}","received_events_url":"https://api.github.com/users/tarasbobak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"josephperrott","id":10864441,"avatar_url":"https://avatars2.githubusercontent.com/u/10864441?v=4","gravatar_id":"","url":"https://api.github.com/users/josephperrott","html_url":"https://github.com/josephperrott","followers_url":"https://api.github.com/users/josephperrott/followers","following_url":"https://api.github.com/users/josephperrott/following{/other_user}","gists_url":"https://api.github.com/users/josephperrott/gists{/gist_id}","starred_url":"https://api.github.com/users/josephperrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephperrott/subscriptions","organizations_url":"https://api.github.com/users/josephperrott/orgs","repos_url":"https://api.github.com/users/josephperrott/repos","events_url":"https://api.github.com/users/josephperrott/events{/privacy}","received_events_url":"https://api.github.com/users/josephperrott/received_events","type":"User","site_admin":false},"assignees":[{"login":"josephperrott","id":10864441,"avatar_url":"https://avatars2.githubusercontent.com/u/10864441?v=4","gravatar_id":"","url":"https://api.github.com/users/josephperrott","html_url":"https://github.com/josephperrott","followers_url":"https://api.github.com/users/josephperrott/followers","following_url":"https://api.github.com/users/josephperrott/following{/other_user}","gists_url":"https://api.github.com/users/josephperrott/gists{/gist_id}","starred_url":"https://api.github.com/users/josephperrott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephperrott/subscriptions","organizations_url":"https://api.github.com/users/josephperrott/orgs","repos_url":"https://api.github.com/users/josephperrott/repos","events_url":"https://api.github.com/users/josephperrott/events{/privacy}","received_events_url":"https://api.github.com/users/josephperrott/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-09-19T14:45:18Z","updated_at":"2017-09-19T19:02:50Z","closed_at":null,"author_association":"NONE","body":"#### Bug, feature request, or proposal:\r\nLooks like a bug.\r\n\r\n#### What is the expected behavior?\r\nEvent handler is invoked when opened and closed events happen.\r\n\r\n#### What is the current behavior?\r\nEvent handler is not invoked on opened and closed events.\r\n\r\n#### What are the steps to reproduce?\r\nAttach handlers for such events in the template and check if they are invoked after being built with angular cli's ng build --prod.\r\n\r\n#### What is the use-case or motivation for changing an existing behavior?\r\nHas to be working in production build\r\n\r\n#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?\r\n\r\n\r\n#### Is there anything else we should know?\r\nI'm attaching event handlers like this:\r\n`<md-expansion-panel\r\n      (closed)=\"onCollapse()\"\r\n      (opened)=\"onExpand()\">`\r\nand process them in component. But these handlers are not invoked after prod build. It works OK when I do ng build --dev or ng serve."},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/330638917","html_url":"https://github.com/angular/material2/issues/7172#issuecomment-330638917","issue_url":"https://api.github.com/repos/angular/material2/issues/7172","id":330638917,"user":{"login":"tarasbobak","id":12515715,"avatar_url":"https://avatars2.githubusercontent.com/u/12515715?v=4","gravatar_id":"","url":"https://api.github.com/users/tarasbobak","html_url":"https://github.com/tarasbobak","followers_url":"https://api.github.com/users/tarasbobak/followers","following_url":"https://api.github.com/users/tarasbobak/following{/other_user}","gists_url":"https://api.github.com/users/tarasbobak/gists{/gist_id}","starred_url":"https://api.github.com/users/tarasbobak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarasbobak/subscriptions","organizations_url":"https://api.github.com/users/tarasbobak/orgs","repos_url":"https://api.github.com/users/tarasbobak/repos","events_url":"https://api.github.com/users/tarasbobak/events{/privacy}","received_events_url":"https://api.github.com/users/tarasbobak/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T19:02:50Z","updated_at":"2017-09-19T19:02:50Z","author_association":"NONE","body":"@josephperrott Thank you for your response. I was investigating it a bit by myself and it look loke that it works OK when I use beta.10 in package.json and it is reproducable when targeting material builds or specific build. The reason why I need it is because if thew ability to set expanded and collapsed height to the wxpansion panel."}}
{"actor":{"display_login":"tarasbobak"}}