{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/7250","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/7250/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/7250/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/7250/events","html_url":"https://github.com/driftyco/ionic/issues/7250","id":164661856,"number":7250,"title":"Feature Request: popToIndex()","user":{"login":"Rambatino","id":3631109,"avatar_url":"https://avatars.githubusercontent.com/u/3631109?v=3","gravatar_id":"","url":"https://api.github.com/users/Rambatino","html_url":"https://github.com/Rambatino","followers_url":"https://api.github.com/users/Rambatino/followers","following_url":"https://api.github.com/users/Rambatino/following{/other_user}","gists_url":"https://api.github.com/users/Rambatino/gists{/gist_id}","starred_url":"https://api.github.com/users/Rambatino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rambatino/subscriptions","organizations_url":"https://api.github.com/users/Rambatino/orgs","repos_url":"https://api.github.com/users/Rambatino/repos","events_url":"https://api.github.com/users/Rambatino/events{/privacy}","received_events_url":"https://api.github.com/users/Rambatino/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-09T10:47:33Z","updated_at":"2016-07-12T15:33:19Z","closed_at":"2016-07-12T15:33:19Z","body":"#### Short description of the problem:\r\n\r\nI found that popping to a specific index in the navigation stack was more difficult than I thought it should be. If it isn't the first view (whereby `popToRoot` can be used) and you don't have a reference to a specific ViewController (whereby `popTo` can be used), it requires (or so I presume) that `remove` must be called, removing all but the current ViewController and then `pop` followed afterwards to pop back. \r\n\r\n#### What behavior are you expecting?\r\n\r\nA method such as `popToIndex`.\r\n\r\nIf you determine value to this new feature in nav-controller.ts, would I be able to fork and create a PR following the contribution guidelines?\r\n\r\n**Which Ionic Version?** 2.x\r\nCordova CLI: 6.2.0\r\nGulp version:  CLI version 3.9.1\r\nGulp local:   Local version 3.9.1\r\nIonic Framework Version: 2.0.0-beta.9\r\nIonic CLI Version: 2.0.0-beta.32\r\nIonic App Lib Version: 2.0.0-beta.18\r\nios-deploy version: 1.8.5\r\nios-sim version: 5.0.8\r\nOS: Mac OS X El Capitan\r\nNode Version: v5.10.1\r\nXcode version: Xcode 7.3.1 Build version 7D1014\r\n\r\n"}}
{"actor":{"display_login":"manucorporat"}}