{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic2/issues/608","labels_url":"https://api.github.com/repos/driftyco/ionic2/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic2/issues/608/comments","events_url":"https://api.github.com/repos/driftyco/ionic2/issues/608/events","html_url":"https://github.com/driftyco/ionic2/issues/608","id":118108870,"number":608,"title":"bug: Popup","user":{"login":"felipereis","id":2862216,"avatar_url":"https://avatars.githubusercontent.com/u/2862216?v=3","gravatar_id":"","url":"https://api.github.com/users/felipereis","html_url":"https://github.com/felipereis","followers_url":"https://api.github.com/users/felipereis/followers","following_url":"https://api.github.com/users/felipereis/following{/other_user}","gists_url":"https://api.github.com/users/felipereis/gists{/gist_id}","starred_url":"https://api.github.com/users/felipereis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipereis/subscriptions","organizations_url":"https://api.github.com/users/felipereis/orgs","repos_url":"https://api.github.com/users/felipereis/repos","events_url":"https://api.github.com/users/felipereis/events{/privacy}","received_events_url":"https://api.github.com/users/felipereis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T19:24:27Z","updated_at":"2015-11-20T20:26:02Z","closed_at":null,"body":"Ionic Version: \"2.0.0-alpha.31\"\r\n\r\npopup.html\r\n```html\r\n<ion-navbar *navbar>\r\n  <a menu-toggle>\r\n    <icon menu></icon>\r\n  </a>\r\n  <ion-title>Popup</ion-title>\r\n</ion-navbar>\r\n\r\n<ion-content padding>\r\n  <button dark (click)=\"doAlert()\">Alert</button>\r\n  <button light (click)=\"doPrompt()\">Prompt</button>\r\n  <button primary (click)=\"doConfirm()\">Confirm</button>\r\n  <ion-overlay></ion-overlay>\r\n</ion-content>\r\n\r\n```\r\npopup.js\r\n\r\n```html\r\nimport {App, IonicApp, Platform, IonicView,Page, NavController, Popup} from 'ionic/ionic'\r\n \r\n@Page({\r\n    templateUrl: 'app/popup/popup.html'\r\n})\r\n\r\n  export class PopupPage {\r\n    constructor(nav: NavController, popup: Popup) {\r\n    \t this.nav = nav;\r\n         this.popup = popup;\r\n    }\r\n\r\n   \r\n  doAlert() {\r\n    this.popup.alert({\r\n        title: \"New Friend!\",\r\n        template: \"Your friend, Obi wan Kenobi, just accepted your friend request!\",\r\n        cssClass: 'my-alert'\r\n    });\r\n  }\r\n\r\n  doPrompt() {\r\n    this.popup.prompt({\r\n      title: \"New Album\",\r\n      template: \"Enter a name for this new album you're so keen on adding\",\r\n      inputPlaceholder: \"Title\",\r\n      okText: \"Save\"\r\n    });\r\n  }\r\n\r\n  doConfirm() {\r\n    this.popup.confirm({\r\n      title: \"Use this lightsaber?\",\r\n      template: \"Do you agree to use this lightsaber to do good across the intergalactic galaxy?\",\r\n      cancelText: \"Disagree\",\r\n      okText: \"Agree\"\r\n    });\r\n  }\r\n}\r\n \r\n}\r\n\r\n```\r\n\r\nProblem1: When I click on the alert button --> EXCEPTION: TypeError: Cannot read property 'length' of undefined in [null]\r\n\r\n![captura_de_tela](https://cloud.githubusercontent.com/assets/2862216/11309088/098271e2-8fa9-11e5-83ca-c654db5c6fa4.png)\r\n\r\nProblem2: When I use the alert popup and try to go to Popup page again-> EXCEPTION: Attempt to detect changes on a dehydrated detector.\r\n\r\n![captura_de_tela-2](https://cloud.githubusercontent.com/assets/2862216/11309263/f5c6a53c-8fa9-11e5-910b-c6b2b42a5ead.png)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic2/issues/comments/158515423","html_url":"https://github.com/driftyco/ionic2/issues/608#issuecomment-158515423","issue_url":"https://api.github.com/repos/driftyco/ionic2/issues/608","id":158515423,"user":{"login":"adamdbradley","id":452425,"avatar_url":"https://avatars.githubusercontent.com/u/452425?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdbradley","html_url":"https://github.com/adamdbradley","followers_url":"https://api.github.com/users/adamdbradley/followers","following_url":"https://api.github.com/users/adamdbradley/following{/other_user}","gists_url":"https://api.github.com/users/adamdbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdbradley/subscriptions","organizations_url":"https://api.github.com/users/adamdbradley/orgs","repos_url":"https://api.github.com/users/adamdbradley/repos","events_url":"https://api.github.com/users/adamdbradley/events{/privacy}","received_events_url":"https://api.github.com/users/adamdbradley/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T20:26:02Z","updated_at":"2015-11-20T20:26:02Z","body":"When I test using the latest code in master I'm unable to get this error from this e2e test: https://github.com/driftyco/ionic2/blob/master/ionic/components/popup/test/basic/index.ts\r\n\r\nCan you try against the latest version in npm and see if that fixes it?\r\nhttps://www.npmjs.com/package/ionic-framework\r\n\r\nthanks"}}