{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/angular2_components/issues/18","repository_url":"https://api.github.com/repos/dart-lang/angular2_components","labels_url":"https://api.github.com/repos/dart-lang/angular2_components/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/angular2_components/issues/18/comments","events_url":"https://api.github.com/repos/dart-lang/angular2_components/issues/18/events","html_url":"https://github.com/dart-lang/angular2_components/issues/18","id":189419359,"number":18,"title":"material-tab does not update when label is changed.","user":{"login":"rwrozelle","id":8890259,"avatar_url":"https://avatars.githubusercontent.com/u/8890259?v=3","gravatar_id":"","url":"https://api.github.com/users/rwrozelle","html_url":"https://github.com/rwrozelle","followers_url":"https://api.github.com/users/rwrozelle/followers","following_url":"https://api.github.com/users/rwrozelle/following{/other_user}","gists_url":"https://api.github.com/users/rwrozelle/gists{/gist_id}","starred_url":"https://api.github.com/users/rwrozelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwrozelle/subscriptions","organizations_url":"https://api.github.com/users/rwrozelle/orgs","repos_url":"https://api.github.com/users/rwrozelle/repos","events_url":"https://api.github.com/users/rwrozelle/events{/privacy}","received_events_url":"https://api.github.com/users/rwrozelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-15T15:17:54Z","updated_at":"2016-11-24T00:51:38Z","closed_at":null,"body":"Inside a material-tab-panel I have the following:\r\n\r\n        <material-tab *ngFor=\"let tab of tabs\" [label]=\"tab.title\"></material-tab>\r\n\r\nIn other code, I am able to update the tab.title, but do not see results in browser.\r\n\r\nI am able to see results in browser for <div *ngFor=\"let tab of tabs\">{{tab.title}}</div>\r\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/angular2_components/issues/comments/262665002","html_url":"https://github.com/dart-lang/angular2_components/issues/18#issuecomment-262665002","issue_url":"https://api.github.com/repos/dart-lang/angular2_components/issues/18","id":262665002,"user":{"login":"nshahan","id":2498387,"avatar_url":"https://avatars.githubusercontent.com/u/2498387?v=3","gravatar_id":"","url":"https://api.github.com/users/nshahan","html_url":"https://github.com/nshahan","followers_url":"https://api.github.com/users/nshahan/followers","following_url":"https://api.github.com/users/nshahan/following{/other_user}","gists_url":"https://api.github.com/users/nshahan/gists{/gist_id}","starred_url":"https://api.github.com/users/nshahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nshahan/subscriptions","organizations_url":"https://api.github.com/users/nshahan/orgs","repos_url":"https://api.github.com/users/nshahan/repos","events_url":"https://api.github.com/users/nshahan/events{/privacy}","received_events_url":"https://api.github.com/users/nshahan/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T00:51:38Z","updated_at":"2016-11-24T00:51:38Z","body":"It looks like you are going about it right. I made a simple demo. Take a look and see if you are missing anything or have a typo hiding somewhere.\r\n\r\nA quick example here with a dummy class for tabs\r\n```\r\nimport 'package:angular2/angular2.dart';\r\nimport 'package:angular2_components/angular2_components.dart';\r\n\r\nclass Tab {\r\n  String title;\r\n  String text;\r\n  Tab(this.title, this.text);\r\n}\r\n\r\n@Component(\r\n    selector: 'my-app',\r\n    styleUrls: const ['app_component.css'],\r\n    templateUrl: 'app_component.html',\r\n    directives: const [materialDirectives, NgFor],\r\n    providers: const [materialProviders])\r\nclass AppComponent {\r\n  List<Tab> tabs = new List<Tab>();\r\n  AppComponent() {\r\n    tabs.add(new Tab('one', 'Text in the first tab'));\r\n    tabs.add(new Tab('two', 'Text in the second tab'));\r\n    tabs.add(new Tab('three', 'Text in the third tab'));\r\n  }\r\n}\r\n```\r\nHTML template:\r\n```\r\n<h1>Testing Tabs</h1>\r\n<material-tab-panel>\r\n    <material-tab *ngFor=\"let tab of tabs\" [label]=\"tab.title\">\r\n        <div>{{ tab.text }} </div>\r\n    </material-tab>\r\n</material-tab-panel>\r\n```"}}
{"actor":{"display_login":"nshahan"}}