{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/9811","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/9811/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/9811/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/9811/events","html_url":"https://github.com/driftyco/ionic/issues/9811","id":197798091,"number":9811,"title":"Changing detect stop works when handle a tab click event.","user":{"login":"netsesame2","id":22102518,"avatar_url":"https://avatars.githubusercontent.com/u/22102518?v=3","gravatar_id":"","url":"https://api.github.com/users/netsesame2","html_url":"https://github.com/netsesame2","followers_url":"https://api.github.com/users/netsesame2/followers","following_url":"https://api.github.com/users/netsesame2/following{/other_user}","gists_url":"https://api.github.com/users/netsesame2/gists{/gist_id}","starred_url":"https://api.github.com/users/netsesame2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netsesame2/subscriptions","organizations_url":"https://api.github.com/users/netsesame2/orgs","repos_url":"https://api.github.com/users/netsesame2/repos","events_url":"https://api.github.com/users/netsesame2/events{/privacy}","received_events_url":"https://api.github.com/users/netsesame2/received_events","type":"User","site_admin":false},"labels":[{"id":311009737,"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/driftyco/ionic/milestones/47","html_url":"https://github.com/driftyco/ionic/milestone/47","labels_url":"https://api.github.com/repos/driftyco/ionic/milestones/47/labels","id":2142777,"number":47,"title":"2.0.0-rc.5","description":"","creator":{"login":"brandyscarney","id":6577830,"avatar_url":"https://avatars.githubusercontent.com/u/6577830?v=3","gravatar_id":"","url":"https://api.github.com/users/brandyscarney","html_url":"https://github.com/brandyscarney","followers_url":"https://api.github.com/users/brandyscarney/followers","following_url":"https://api.github.com/users/brandyscarney/following{/other_user}","gists_url":"https://api.github.com/users/brandyscarney/gists{/gist_id}","starred_url":"https://api.github.com/users/brandyscarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandyscarney/subscriptions","organizations_url":"https://api.github.com/users/brandyscarney/orgs","repos_url":"https://api.github.com/users/brandyscarney/repos","events_url":"https://api.github.com/users/brandyscarney/events{/privacy}","received_events_url":"https://api.github.com/users/brandyscarney/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":16,"state":"open","created_at":"2016-11-17T20:49:44Z","updated_at":"2017-01-09T18:04:28Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-12-28T05:27:01Z","updated_at":"2017-01-09T18:15:04Z","closed_at":"2017-01-09T18:04:28Z","body":"**Ionic version:**  (check one with \"x\")\r\n[ ] **1.x**\r\n[x] **2.x**\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/\r\n\r\nYour system information:\r\n\r\nordova CLI: 6.4.0\r\nIonic Framework Version: 2.0.0-rc.4\r\nIonic CLI Version: 2.1.18\r\nIonic App Lib Version: 2.1.9\r\nIonic App Scripts Version: 0.0.47\r\nios-deploy version: Not installed\r\nios-sim version: Not installed\r\nOS: Windows 10\r\nNode Version: v4.3.1\r\nXcode version: Not installed\r\n\r\n**Current behavior:**\r\n<!-- Describe how the bug manifests. -->\r\nIn an ionic's tabs based app, if we handle a button click from a tab button, change some states, ionic's changing detecting mechanism for the current page will stop working. Only thing we can do is exist and re-enter the view.\r\n\r\n**Expected behavior:**\r\n<!-- Describe what the behavior would be without the bug. -->\r\nWe hope it will be that, by clicking a tab button, change some states, the states will be updated in the binding views. \r\n\r\n**Steps to reproduce:**\r\n1. start a new project demo with default tabs template.\r\n2. add a button tab in tabs.html as:\r\n>   <ion-tab tabTitle=\"\" tabIcon=\"camera\" (ionSelect)=\"takePhoto()\">\\</ion-tab>\r\n\r\n3. Inject events into tabs.ts, and add a test method in tabs.ts:\r\n\r\n> export class TabsPage {\r\n> ...\r\n>   constructor(private events: Events) {}\r\n> \r\n>   takePhoto() {\r\n>     this.events.publish(\"data:changed\");\r\n>   }\r\n> }\r\n\r\n4. Inject Events into home.ts, and subscribe to above event:\r\n> export class HomePage {\r\n>   datatest: string = \"old\";\r\n> \r\n>   constructor(public navCtrl: NavController, public events: Events) {\r\n>     events.subscribe(\"data:changed\", this.change.bind(this));\r\n>   }\r\n> \r\n>   change() {\r\n>     console.log(\"data changed!\");\r\n>     this.datatest = \"new!\";\r\n>   }\r\n> }\r\n\r\n5. add a variable binding to anywhere in home.html:\r\n\r\n>   <button ion-button (click)=\"change()\">TEST\\</button>\r\n>   \\<label>{{datatest}}\\</label>\r\n\r\n6. click the 'camera‘ tab, watch the home page. no update is happen. while the console print the expected value.\r\n7. click the 'test' button on home page, no update is happen also.\r\n8. re-enter the home page, repeat 7, update take effect.\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/271360618","html_url":"https://github.com/driftyco/ionic/issues/9811#issuecomment-271360618","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/9811","id":271360618,"user":{"login":"brandyscarney","id":6577830,"avatar_url":"https://avatars.githubusercontent.com/u/6577830?v=3","gravatar_id":"","url":"https://api.github.com/users/brandyscarney","html_url":"https://github.com/brandyscarney","followers_url":"https://api.github.com/users/brandyscarney/followers","following_url":"https://api.github.com/users/brandyscarney/following{/other_user}","gists_url":"https://api.github.com/users/brandyscarney/gists{/gist_id}","starred_url":"https://api.github.com/users/brandyscarney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandyscarney/subscriptions","organizations_url":"https://api.github.com/users/brandyscarney/orgs","repos_url":"https://api.github.com/users/brandyscarney/repos","events_url":"https://api.github.com/users/brandyscarney/events{/privacy}","received_events_url":"https://api.github.com/users/brandyscarney/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T18:15:04Z","updated_at":"2017-01-09T18:15:04Z","body":"This will be in the next release, if you'd like to test it sooner please install the latest nightly:\r\n\r\n```\r\nnpm install --save ionic-angular@nightly\r\n```\r\n\r\nLet us know if you see any problems. Thanks! "}}
{"actor":{"display_login":"brandyscarney"}}