{"action":"closed","issue":{"url":"https://api.github.com/repos/ionic-team/ionic/issues/10016","repository_url":"https://api.github.com/repos/ionic-team/ionic","labels_url":"https://api.github.com/repos/ionic-team/ionic/issues/10016/labels{/name}","comments_url":"https://api.github.com/repos/ionic-team/ionic/issues/10016/comments","events_url":"https://api.github.com/repos/ionic-team/ionic/issues/10016/events","html_url":"https://github.com/ionic-team/ionic/issues/10016","id":200637777,"number":10016,"title":"Binding data to pages can randomly stop working","user":{"login":"le0pard","id":98444,"avatar_url":"https://avatars1.githubusercontent.com/u/98444?v=4","gravatar_id":"","url":"https://api.github.com/users/le0pard","html_url":"https://github.com/le0pard","followers_url":"https://api.github.com/users/le0pard/followers","following_url":"https://api.github.com/users/le0pard/following{/other_user}","gists_url":"https://api.github.com/users/le0pard/gists{/gist_id}","starred_url":"https://api.github.com/users/le0pard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le0pard/subscriptions","organizations_url":"https://api.github.com/users/le0pard/orgs","repos_url":"https://api.github.com/users/le0pard/repos","events_url":"https://api.github.com/users/le0pard/events{/privacy}","received_events_url":"https://api.github.com/users/le0pard/received_events","type":"User","site_admin":false},"labels":[{"id":880136999,"url":"https://api.github.com/repos/ionic-team/ionic/labels/ionitron:%20stale%20issue","name":"ionitron: stale issue","color":"bfd4f2","default":false},{"id":311009737,"url":"https://api.github.com/repos/ionic-team/ionic/labels/v2","name":"v2","color":"313744","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-13T14:05:46Z","updated_at":"2018-04-11T12:58:35Z","closed_at":"2018-04-11T12:58:35Z","author_association":"NONE","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\n**Current behavior:**\r\nUpdating data in templates stop working in random way and update only if you call `this.ref.detectChanges();` in app.component (on video added it on click of menu), there `this.ref` is `ChangeDetectorRef`.\r\n\r\nHere video how it is looks like:\r\n\r\nhttp://take.ms/Phud5\r\n\r\n**Expected behavior:**\r\nData binding to template should works.\r\n\r\n**Steps to reproduce:**\r\nIt happen randomly after using `this.nav.setRoot(somePage)` from one page to another. I do not have clear step to reproduce. If I click on link in left menu, which make `this.nav.setRoot(somePage)` from app.component to the same page, binding start works again on page. As I can see, I get this bug often, if my PC or tested device is slowing down (reproduced on browser and devices).\r\n\r\n**Related code:**\r\n\r\nExample of code, which stop working in random way on pages.\r\n\r\n```\r\n     <button ion-button default\r\n        (click)=\"minusTapped($event, item)\"\r\n        class=\"minus-button\"\r\n        color=\"light\"\r\n      >-</button>\r\n      <input clearInput\r\n        value=\"0\"\r\n        type=\"text\"\r\n        size=\"2\"\r\n        [(ngModel)]=\"item.count\"\r\n        [disabled]=\"!isPersonChangeEnabled\"\r\n        class=\"ticketing-count\"\r\n      />\r\n      <button ion-button default\r\n        (click)=\"plusTapped($event, item)\"\r\n        class=\"plus-button\"\r\n      >+</button>\r\n```\r\n\r\nmethods `plusTapped` and `minusTapped` get events (checked by `console.log`), object `item` is changing, but template not update.\r\n\r\n**Ionic info:** (run `ionic info` from a terminal/cmd prompt and paste output below):\r\n\r\n```\r\nYour system information:\r\n\r\nCordova CLI: 6.4.0\r\nIonic Framework Version: 2.0.0-rc.5-201701121905\r\nIonic CLI Version: 2.1.18\r\nIonic App Lib Version: 2.1.9\r\nIonic App Scripts Version: 1.0.0\r\nios-deploy version: Not installed\r\nios-sim version: Not installed\r\nOS: macOS Sierra\r\nNode Version: v7.4.0\r\nXcode version: Xcode 8.2.1 Build version 8C1002\r\n```\r\n\r\npackage.json:\r\n\r\n```\r\n\"dependencies\": {\r\n    \"@angular/common\": \"2.2.1\",\r\n    \"@angular/compiler\": \"2.2.1\",\r\n    \"@angular/compiler-cli\": \"2.2.1\",\r\n    \"@angular/core\": \"2.2.1\",\r\n    \"@angular/forms\": \"2.2.1\",\r\n    \"@angular/http\": \"2.2.1\",\r\n    \"@angular/platform-browser\": \"2.2.1\",\r\n    \"@angular/platform-browser-dynamic\": \"2.2.1\",\r\n    \"@angular/platform-server\": \"2.2.1\",\r\n    \"@ionic/storage\": \"1.1.7\",\r\n    \"crypto-js\": \"3.1.9-1\",\r\n    \"gulp\": \"^3.9.1\",\r\n    \"ionic-angular\": \"nightly\",\r\n    \"ionic-native\": \"2.2.15\",\r\n    \"ionicons\": \"3.0.0\",\r\n    \"lodash\": \"^4.17.3\",\r\n    \"moment\": \"^2.17.1\",\r\n    \"ng2-translate\": \"5.0.0\",\r\n    \"rollup-plugin-replace\": \"^1.1.1\",\r\n    \"rxjs\": \"5.0.0-beta.12\",\r\n    \"sw-toolbox\": \"^3.4.0\",\r\n    \"zone.js\": \"0.6.26\"\r\n  },\r\n\"devDependencies\": {\r\n    \"@ionic/app-scripts\": \"1.0.0\",\r\n    \"typescript\": \"2.0.9\"\r\n  },\r\n```\r\n\r\nMostly I need advice how to debug this problem, because I do not understand why this happen."}}
{"actor":{"display_login":"ionic-issue-bot"}}