{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/7899","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/7899/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/7899/comments","events_url":"https://api.github.com/repos/angular/material2/issues/7899/events","html_url":"https://github.com/angular/material2/issues/7899","id":266771281,"number":7899,"title":"[Tabs] Get label property of selected tab","user":{"login":"FiringBlanks","id":8304326,"avatar_url":"https://avatars1.githubusercontent.com/u/8304326?v=4","gravatar_id":"","url":"https://api.github.com/users/FiringBlanks","html_url":"https://github.com/FiringBlanks","followers_url":"https://api.github.com/users/FiringBlanks/followers","following_url":"https://api.github.com/users/FiringBlanks/following{/other_user}","gists_url":"https://api.github.com/users/FiringBlanks/gists{/gist_id}","starred_url":"https://api.github.com/users/FiringBlanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FiringBlanks/subscriptions","organizations_url":"https://api.github.com/users/FiringBlanks/orgs","repos_url":"https://api.github.com/users/FiringBlanks/repos","events_url":"https://api.github.com/users/FiringBlanks/events{/privacy}","received_events_url":"https://api.github.com/users/FiringBlanks/received_events","type":"User","site_admin":false},"labels":[{"id":311421688,"url":"https://api.github.com/repos/angular/material2/labels/P3:%20important","name":"P3: important","color":"fad8c7","default":false},{"id":311421127,"url":"https://api.github.com/repos/angular/material2/labels/feature","name":"feature","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"andrewseguin","id":22898577,"avatar_url":"https://avatars3.githubusercontent.com/u/22898577?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewseguin","html_url":"https://github.com/andrewseguin","followers_url":"https://api.github.com/users/andrewseguin/followers","following_url":"https://api.github.com/users/andrewseguin/following{/other_user}","gists_url":"https://api.github.com/users/andrewseguin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewseguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewseguin/subscriptions","organizations_url":"https://api.github.com/users/andrewseguin/orgs","repos_url":"https://api.github.com/users/andrewseguin/repos","events_url":"https://api.github.com/users/andrewseguin/events{/privacy}","received_events_url":"https://api.github.com/users/andrewseguin/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewseguin","id":22898577,"avatar_url":"https://avatars3.githubusercontent.com/u/22898577?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewseguin","html_url":"https://github.com/andrewseguin","followers_url":"https://api.github.com/users/andrewseguin/followers","following_url":"https://api.github.com/users/andrewseguin/following{/other_user}","gists_url":"https://api.github.com/users/andrewseguin/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewseguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewseguin/subscriptions","organizations_url":"https://api.github.com/users/andrewseguin/orgs","repos_url":"https://api.github.com/users/andrewseguin/repos","events_url":"https://api.github.com/users/andrewseguin/events{/privacy}","received_events_url":"https://api.github.com/users/andrewseguin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":13,"created_at":"2017-10-19T09:08:04Z","updated_at":"2018-03-15T10:21:08Z","closed_at":null,"author_association":"NONE","body":"#### Bug, feature request, or proposal:\r\n\r\nFeature Request\r\n\r\n#### What is the expected behavior?\r\n\r\nTo programmatically get the name of the currently selected tab\r\n\r\n#### What is the current behavior?\r\n\r\nIt seems that `(selectedTabChange)` and `md-on-select` aren't executing the ts code for some reason. Even if they did, they would only return the current index #. I need the full value of the label property for what I'm working with. \r\n\r\n#### What are the steps to reproduce?\r\n\r\n```\r\n<md-tab-group (selectedTabChange)=\"tabChanged($event)\" style=\"margin-top:16px;\">\r\n      <md-tab label=\"{{ thing.name }}\" *ngFor=\"let thing of things | async\">\r\n\r\n        <div class=\"ui basic segment\">\r\n          <table class=\"ui three column center aligned table\">\r\n            <thead>\r\n              <tr>\r\n                <th><div class=\"ui pink button\">Item 1</div></th>\r\n                <th><div class=\"ui pink button\">Item 2</div></th>\r\n                <th><button class=\"ui red button\"><i class=\"pin icon\"></i>Pinned</button></th>    \r\n              </tr>\r\n            </thead>\r\n          </table>\r\n        </div>\r\n\r\n      </md-tab>\r\n      <md-tab label=\"+ Add Thing\"></md-tab>\r\n    </md-tab-group>\r\n```\r\n\r\n#### What is the use-case or motivation for changing an existing behavior?\r\n\r\nIn this example, I would add an item to the tabs list. Then when clicked, I would find the value of the selected tab's `label` property to see which tab is selected and therefore which information to load from my Firestore database. The path in my database that I need to load is given the same value as the `label` property of the tab, which makes it much easier to work with.\r\n\r\n#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?\r\n\r\nAngularFire2 v5\r\nAngular Common v4.2.4\r\nMaterial v2.0.0 beta.10\r\nTypescript v2.3.3\r\n\r\n#### Is there anything else we should know?\r\n\r\nPlatypus are from the same family as Echidnas. "},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/373328142","html_url":"https://github.com/angular/material2/issues/7899#issuecomment-373328142","issue_url":"https://api.github.com/repos/angular/material2/issues/7899","id":373328142,"user":{"login":"ATakaSKY","id":17201629,"avatar_url":"https://avatars3.githubusercontent.com/u/17201629?v=4","gravatar_id":"","url":"https://api.github.com/users/ATakaSKY","html_url":"https://github.com/ATakaSKY","followers_url":"https://api.github.com/users/ATakaSKY/followers","following_url":"https://api.github.com/users/ATakaSKY/following{/other_user}","gists_url":"https://api.github.com/users/ATakaSKY/gists{/gist_id}","starred_url":"https://api.github.com/users/ATakaSKY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATakaSKY/subscriptions","organizations_url":"https://api.github.com/users/ATakaSKY/orgs","repos_url":"https://api.github.com/users/ATakaSKY/repos","events_url":"https://api.github.com/users/ATakaSKY/events{/privacy}","received_events_url":"https://api.github.com/users/ATakaSKY/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T10:21:08Z","updated_at":"2018-03-15T10:21:08Z","author_association":"NONE","body":"@FiringBlanks I have the same thoughts. Any luck yet?"}}
{"actor":{"display_login":"ATakaSKY"}}