{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/6466","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/6466/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/6466/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/6466/events","html_url":"https://github.com/driftyco/ionic/issues/6466","id":153615273,"number":6466,"title":"Page with radiobuttons throws an error when dismissed/backbutton","user":{"login":"sveinl","id":5601238,"avatar_url":"https://avatars.githubusercontent.com/u/5601238?v=3","gravatar_id":"","url":"https://api.github.com/users/sveinl","html_url":"https://github.com/sveinl","followers_url":"https://api.github.com/users/sveinl/followers","following_url":"https://api.github.com/users/sveinl/following{/other_user}","gists_url":"https://api.github.com/users/sveinl/gists{/gist_id}","starred_url":"https://api.github.com/users/sveinl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sveinl/subscriptions","organizations_url":"https://api.github.com/users/sveinl/orgs","repos_url":"https://api.github.com/users/sveinl/repos","events_url":"https://api.github.com/users/sveinl/events{/privacy}","received_events_url":"https://api.github.com/users/sveinl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/driftyco/ionic/milestones/36","html_url":"https://github.com/driftyco/ionic/milestones/2.0.0-beta.7","labels_url":"https://api.github.com/repos/driftyco/ionic/milestones/36/labels","id":1576399,"number":36,"title":"2.0.0-beta.7","description":"Date/time inputs, Slides, Swipe between tabs, Floating Action Buttons\r\n","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":29,"closed_issues":19,"state":"open","created_at":"2016-02-10T20:18:54Z","updated_at":"2016-05-10T22:24:43Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-05-07T20:10:26Z","updated_at":"2016-05-10T22:24:43Z","closed_at":"2016-05-10T22:24:43Z","body":"#### Short description of the problem:\r\nI have a page that opens another page containing 2 radiobuttons.\r\nWhen hitting backbutton on that page there is an exception thrown:\r\n`EXCEPTION: TypeError: Cannot read property 'remove' of null`\r\n\r\n#### What behavior are you expecting?\r\nNo errors.\r\n\r\n**Steps to reproduce:**\r\n1. Create a page that opens another page containing radiobuttons\r\n2. Visit that page and click back-button\r\n\r\n**Other information:** (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)\r\n3     898346   error    STACKTRACE:\r\n5     898347   groupEnd\r\n6     898348   error    Uncaught TypeError: Cannot read property 'remove' of null, http://localhost:8100/build/js/angular2-polyfills.js, Line: 324\r\n0     952330   log      Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.\r\n1     959837   group    EXCEPTION: TypeError: Cannot read property 'remove' of null\r\n2     959838   error    EXCEPTION: TypeError: Cannot read property 'remove' of null\r\n3     959839   error    STACKTRACE:\r\n4     959839   error    TypeError: Cannot read property 'remove' of null\r\n    at RadioButton.ngOnDestroy (http://localhost:8100/build/js/app.bundle.js:45957:20)\r\n    at AbstractChangeDetector.ChangeDetector_RadioPage_0.dehydrateDirectives (viewFactory_RadioPage:286:20)\r\n    at AbstractChangeDetector.dehydrate (http://localhost:8100/build/js/app.bundle.js:12904:14)\r\n    at AbstractChangeDetector.destroyRecursive (http://localhost:8100/build/js/app.bundle.js:12917:14)\r\n    at AbstractChangeDetector.destroyRecursive (http://localhost:8100/build/js/app.bundle.js:12924:25)\r\n    at AppView.destroy (http://localhost:8100/build/js/app.bundle.js:22543:29)\r\n    at AppViewManager_.destroyViewInContainer (http://localhost:8100/build/js/app.bundle.js:23008:14)\r\n    at ViewContainerRef_.remove (http://localhost:8100/build/js/app.bundle.js:22870:19)\r\n    at Array.<anonymous> (http://localhost:8100/build/js/app.bundle.js:44020:35)\r\n    at ViewController.destroy (http://localhost:8100/build/js/app.bundle.js:45458:30)\r\n5     959840   groupEnd\r\n6     959842   error    Uncaught TypeError: Cannot read property 'remove' of null, http://localhost:8100/build/js/angular2-polyfills.js, Line: 324\r\n \r\n\r\n**Which Ionic Version?** 2.x\r\n\r\n#### Plunker that shows an example of your issue\r\nhttp://plnkr.co/edit/SUpyXm?p=preview\r\nClick \"Show radios\" then hit back button. An exception are thrown in the console.\r\n\r\n**Run `ionic info` from terminal/cmd prompt:** (paste output below)\r\n ionic info\r\n\r\nYour system information:\r\nCordova CLI: 6.1.1\r\nGulp version:  CLI version 3.9.1\r\nGulp local:   Local version 3.9.1\r\nIonic Framework Version: 2.0.0-beta.6\r\nIonic CLI Version: 2.0.0-beta.25\r\nIonic App Lib Version: 2.0.0-beta.15\r\nOS:\r\nNode Version: v4.4.3\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/218310196","html_url":"https://github.com/driftyco/ionic/issues/6466#issuecomment-218310196","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/6466","id":218310196,"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":"2016-05-10T22:24:43Z","updated_at":"2016-05-10T22:24:43Z","body":"Thanks for the issue and the PR! This will be in the `beta.7` release. "}}