{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/1911","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/1911/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/1911/comments","events_url":"https://api.github.com/repos/angular/material2/issues/1911/events","html_url":"https://github.com/angular/material2/issues/1911","id":190049209,"number":1911,"title":"BUG - md-tab ngFor crashes angular","user":{"login":"AmitMY","id":5757359,"avatar_url":"https://avatars.githubusercontent.com/u/5757359?v=3","gravatar_id":"","url":"https://api.github.com/users/AmitMY","html_url":"https://github.com/AmitMY","followers_url":"https://api.github.com/users/AmitMY/followers","following_url":"https://api.github.com/users/AmitMY/following{/other_user}","gists_url":"https://api.github.com/users/AmitMY/gists{/gist_id}","starred_url":"https://api.github.com/users/AmitMY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmitMY/subscriptions","organizations_url":"https://api.github.com/users/AmitMY/orgs","repos_url":"https://api.github.com/users/AmitMY/repos","events_url":"https://api.github.com/users/AmitMY/events{/privacy}","received_events_url":"https://api.github.com/users/AmitMY/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-17T13:39:02Z","updated_at":"2016-11-17T16:09:02Z","closed_at":"2016-11-17T16:09:02Z","body":"#### Bug, feature request, or proposal:\r\nBug\r\n\r\n#### What is the expected behavior?\r\nngFor should work on all elements\r\n\r\n#### What is the current behavior?\r\nAngular crash\r\n\r\n#### What are the steps to reproduce?\r\n    <md-tab-group [(selectedIndex)]=\"activeTab\" (selectChange)=\"updateType($event)\" class=\"dark-red\">\r\n        <md-tab *ngFor=\"let a of data\"\r\n                label=\"{{a.prop}}\"></md-tab>\r\n    </md-tab-group>\r\n\r\n\r\n#### Details:\r\n- Bug only happens after `ng build --prod`, not `serve` or `build` alone.\r\n- If you try even a div `ngFor` inside the `md-tab-group` there is a different error.\r\n- Trace:\r\n> error_handler.js:47 EXCEPTION: Cannot read property 'prop' of nullErrorHandler.handleError @ error_handler.js:47next @ application_ref.js:272schedulerFn @ async.js:82SafeSubscriber.__tryOrUnsub @ Subscriber.js:223SafeSubscriber.next @ Subscriber.js:172Subscriber._next @ Subscriber.js:125Subscriber.next @ Subscriber.js:89Subject.next @ Subject.js:55EventEmitter.emit @ async.js:74NgZone.triggerError @ ng_zone.js:278onHandleError @ ng_zone.js:257ZoneDelegate.handleError @ zone.js:236Zone.runTask @ zone.js:157drainMicroTaskQueue @ zone.js:401ZoneTask.invoke @ zone.js:339\r\nerror_handler.js:52 ORIGINAL STACKTRACE:ErrorHandler.handleError @ error_handler.js:52next @ application_ref.js:272schedulerFn @ async.js:82SafeSubscriber.__tryOrUnsub @ Subscriber.js:223SafeSubscriber.next @ Subscriber.js:172Subscriber._next @ Subscriber.js:125Subscriber.next @ Subscriber.js:89Subject.next @ Subject.js:55EventEmitter.emit @ async.js:74NgZone.triggerError @ ng_zone.js:278onHandleError @ ng_zone.js:257ZoneDelegate.handleError @ zone.js:236Zone.runTask @ zone.js:157drainMicroTaskQueue @ zone.js:401ZoneTask.invoke @ zone.js:339\r\nerror_handler.js:53 TypeError: Cannot read property 'prop' of null\r\n    at View_AskComponent1.detectChangesInternal (component.ngfactory.js:623)\r\n    at View_AskComponent1.AppView.detectChanges (view.js:285)\r\n    at ViewContainer.detectChangesInNestedViews (view_container.js:45)\r\n    at CompiledTemplate.proxyViewClass.View_AskComponent0.detectChangesInternal (component.ngfactory.js:384)\r\n    at CompiledTemplate.proxyViewClass.AppView.detectChanges (view.js:285)\r\n    at CompiledTemplate.proxyViewClass.View_AskComponent_Host0.detectChangesInternal (host.ngfactory.js:27)\r\n    at CompiledTemplate.proxyViewClass.AppView.detectChanges (view.js:285)\r\n    at ViewContainer.detectChangesInNestedViews (view_container.js:45)\r\n    at CompiledTemplate.proxyViewClass.View_Material2AppComponent0.detectChangesInternal (component.ngfactory.js:156)\r\n    at CompiledTemplate.proxyViewClass.AppView.detectChanges (view.js:285)ErrorHandler.handleError @ error_handler.js:53next @ application_ref.js:272schedulerFn @ async.js:82SafeSubscriber.__tryOrUnsub @ Subscriber.js:223SafeSubscriber.next @ Subscriber.js:172Subscriber._next @ Subscriber.js:125Subscriber.next @ Subscriber.js:89Subject.next @ Subject.js:55EventEmitter.emit @ async.js:74NgZone.triggerError @ ng_zone.js:278onHandleError @ ng_zone.js:257ZoneDelegate.handleError @ zone.js:236Zone.runTask @ zone.js:157drainMicroTaskQueue @ zone.js:401ZoneTask.invoke @ zone.js:339\r\nzone.js:390 TypeError: Cannot read property 'prop' of null(…)\r\n\r\n#### Which versions of Angular, Material, OS, browsers are affected?\r\n2.2.0, 2.0.0-alpha.10, ALL"},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/261289350","html_url":"https://github.com/angular/material2/issues/1911#issuecomment-261289350","issue_url":"https://api.github.com/repos/angular/material2/issues/1911","id":261289350,"user":{"login":"AmitMY","id":5757359,"avatar_url":"https://avatars.githubusercontent.com/u/5757359?v=3","gravatar_id":"","url":"https://api.github.com/users/AmitMY","html_url":"https://github.com/AmitMY","followers_url":"https://api.github.com/users/AmitMY/followers","following_url":"https://api.github.com/users/AmitMY/following{/other_user}","gists_url":"https://api.github.com/users/AmitMY/gists{/gist_id}","starred_url":"https://api.github.com/users/AmitMY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmitMY/subscriptions","organizations_url":"https://api.github.com/users/AmitMY/orgs","repos_url":"https://api.github.com/users/AmitMY/repos","events_url":"https://api.github.com/users/AmitMY/events{/privacy}","received_events_url":"https://api.github.com/users/AmitMY/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T16:09:02Z","updated_at":"2016-11-17T16:09:02Z","body":"@ocarreterom Thanks!"}}
{"actor":{"display_login":"AmitMY"}}