{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material/issues/3300","labels_url":"https://api.github.com/repos/angular/material/issues/3300/labels{/name}","comments_url":"https://api.github.com/repos/angular/material/issues/3300/comments","events_url":"https://api.github.com/repos/angular/material/issues/3300/events","html_url":"https://github.com/angular/material/issues/3300","id":88849959,"number":3300,"title":"md-tabs: scope inside tabs is not the same as outside","user":{"login":"gpothier","id":629806,"avatar_url":"https://avatars.githubusercontent.com/u/629806?v=3","gravatar_id":"","url":"https://api.github.com/users/gpothier","html_url":"https://github.com/gpothier","followers_url":"https://api.github.com/users/gpothier/followers","following_url":"https://api.github.com/users/gpothier/following{/other_user}","gists_url":"https://api.github.com/users/gpothier/gists{/gist_id}","starred_url":"https://api.github.com/users/gpothier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpothier/subscriptions","organizations_url":"https://api.github.com/users/gpothier/orgs","repos_url":"https://api.github.com/users/gpothier/repos","events_url":"https://api.github.com/users/gpothier/events{/privacy}","received_events_url":"https://api.github.com/users/gpothier/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"robertmesserle","id":571363,"avatar_url":"https://avatars.githubusercontent.com/u/571363?v=3","gravatar_id":"","url":"https://api.github.com/users/robertmesserle","html_url":"https://github.com/robertmesserle","followers_url":"https://api.github.com/users/robertmesserle/followers","following_url":"https://api.github.com/users/robertmesserle/following{/other_user}","gists_url":"https://api.github.com/users/robertmesserle/gists{/gist_id}","starred_url":"https://api.github.com/users/robertmesserle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertmesserle/subscriptions","organizations_url":"https://api.github.com/users/robertmesserle/orgs","repos_url":"https://api.github.com/users/robertmesserle/repos","events_url":"https://api.github.com/users/robertmesserle/events{/privacy}","received_events_url":"https://api.github.com/users/robertmesserle/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/material/milestones/17","html_url":"https://github.com/angular/material/milestones/0.11.0","labels_url":"https://api.github.com/repos/angular/material/milestones/17/labels","id":1166984,"number":17,"title":"0.11.0","description":"- DateTimepicker\r\n- SpeedDial (cont)\r\n- Menu (menubar, cascaded menus, hotkeys)\r\n- Chips (cont.)\r\n- textfields\r\n  *  `<md-text-search>`\r\n- bi-directional support (cont.)\r\n- Slider range\r\n\r\n\r\nPerformance improvements with ripples and ink\r\n","creator":{"login":"robertmesserle","id":571363,"avatar_url":"https://avatars.githubusercontent.com/u/571363?v=3","gravatar_id":"","url":"https://api.github.com/users/robertmesserle","html_url":"https://github.com/robertmesserle","followers_url":"https://api.github.com/users/robertmesserle/followers","following_url":"https://api.github.com/users/robertmesserle/following{/other_user}","gists_url":"https://api.github.com/users/robertmesserle/gists{/gist_id}","starred_url":"https://api.github.com/users/robertmesserle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertmesserle/subscriptions","organizations_url":"https://api.github.com/users/robertmesserle/orgs","repos_url":"https://api.github.com/users/robertmesserle/repos","events_url":"https://api.github.com/users/robertmesserle/events{/privacy}","received_events_url":"https://api.github.com/users/robertmesserle/received_events","type":"User","site_admin":false},"open_issues":189,"closed_issues":149,"state":"open","created_at":"2015-06-16T15:48:24Z","updated_at":"2015-08-10T06:03:34Z","due_on":"2015-08-14T05:00:00Z","closed_at":null},"comments":3,"created_at":"2015-06-16T21:55:52Z","updated_at":"2015-08-10T07:12:14Z","closed_at":"2015-07-20T20:37:47Z","body":"It seems the md-tabs tag establishes a new scope. Consider this html example:\r\n\r\n\tData: {{ data }}\r\n\t<md-tabs flex md-border-bottom md-selected=\"selectedTab\" >\r\n\r\n\t\t<md-tab label=\"A\">\r\n\t\t\t<md-tab-body class=\"md-padding\">\r\n\t\t\t\tData: {{ data }}\r\n\t\t\t\t<md-button ng-click=\"data = 'bye'\">Bye</md-button>\r\n\t\t\t</md-tab-body>\r\n\t\t</md-tab>\r\n\t\r\n\t\t<md-tab label=\"B\">\r\n\t\t</md-tab>\r\n\t</md-tabs>\r\n\r\nThe \"data\" scope attribute can have an initial value:\r\n\r\n\tangular.module(\"docflow\").controller(\"BooksListCtrl\", \r\n\t[\"$scope\", \"$rootScope\", \r\n\tfunction($scope, $rootScope){\r\n\t\t$scope.data = \"hello\";\r\n\t}]);\r\n\r\nWhen the page is loaded, the initial value is displayed both inside and outside the tab. However, when clicking the button that changes the value, the new value appears only inside the tab; outside the tab it remains unchanged.\r\n\r\nThis violates the principle of least astonishment IMHO.\r\n\r\nPlease see this example Meteor app:\r\n\r\nhttps://github.com/gpothier/mdTabIssues\r\n"},"comment":{"url":"https://api.github.com/repos/angular/material/issues/comments/129333577","html_url":"https://github.com/angular/material/issues/3300#issuecomment-129333577","issue_url":"https://api.github.com/repos/angular/material/issues/3300","id":129333577,"user":{"login":"blockjon","id":1198745,"avatar_url":"https://avatars.githubusercontent.com/u/1198745?v=3","gravatar_id":"","url":"https://api.github.com/users/blockjon","html_url":"https://github.com/blockjon","followers_url":"https://api.github.com/users/blockjon/followers","following_url":"https://api.github.com/users/blockjon/following{/other_user}","gists_url":"https://api.github.com/users/blockjon/gists{/gist_id}","starred_url":"https://api.github.com/users/blockjon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blockjon/subscriptions","organizations_url":"https://api.github.com/users/blockjon/orgs","repos_url":"https://api.github.com/users/blockjon/repos","events_url":"https://api.github.com/users/blockjon/events{/privacy}","received_events_url":"https://api.github.com/users/blockjon/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T07:12:14Z","updated_at":"2015-08-10T07:12:14Z","body":"Same problem here.. cant figure out how to do data binding to input elements inside a tab."}}