{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3811","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3811/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3811/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3811/events","html_url":"https://github.com/driftyco/ionic/pull/3811","id":79368433,"number":3811,"title":"[ionicHistory] add method to remove the back view","user":{"login":"ashconnell","id":760516,"avatar_url":"https://avatars.githubusercontent.com/u/760516?v=3","gravatar_id":"","url":"https://api.github.com/users/ashconnell","html_url":"https://github.com/ashconnell","followers_url":"https://api.github.com/users/ashconnell/followers","following_url":"https://api.github.com/users/ashconnell/following{/other_user}","gists_url":"https://api.github.com/users/ashconnell/gists{/gist_id}","starred_url":"https://api.github.com/users/ashconnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashconnell/subscriptions","organizations_url":"https://api.github.com/users/ashconnell/orgs","repos_url":"https://api.github.com/users/ashconnell/repos","events_url":"https://api.github.com/users/ashconnell/events{/privacy}","received_events_url":"https://api.github.com/users/ashconnell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/v1","name":"v1","color":"888888"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-22T09:10:47Z","updated_at":"2016-03-30T14:56:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/driftyco/ionic/pulls/3811","html_url":"https://github.com/driftyco/ionic/pull/3811","diff_url":"https://github.com/driftyco/ionic/pull/3811.diff","patch_url":"https://github.com/driftyco/ionic/pull/3811.patch"},"body":"solves issue #3750\r\n\r\nAdds a method `$ionicHistory.removeBackView()` which removes the cached view, element, scope, and rejigs the history. I'm already using this in production in various use-cases. \r\n\r\nThis predominantly solves the issue where in most angular applications you can use `$state.go('app.foo', { location: 'replace' })` except in ionic, the history is managed manually - this is the solution.\r\n\r\nWould be good to have it part of the core!\r\n\r\nI'm working on the method `$ionicHistory.removeFromHistory(stateName/id)` which we also need for our app - and the ionic community would also benefit from this going forward. Keep an eye out."},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/203473937","html_url":"https://github.com/driftyco/ionic/pull/3811#issuecomment-203473937","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/3811","id":203473937,"user":{"login":"hossam9995","id":7863464,"avatar_url":"https://avatars.githubusercontent.com/u/7863464?v=3","gravatar_id":"","url":"https://api.github.com/users/hossam9995","html_url":"https://github.com/hossam9995","followers_url":"https://api.github.com/users/hossam9995/followers","following_url":"https://api.github.com/users/hossam9995/following{/other_user}","gists_url":"https://api.github.com/users/hossam9995/gists{/gist_id}","starred_url":"https://api.github.com/users/hossam9995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hossam9995/subscriptions","organizations_url":"https://api.github.com/users/hossam9995/orgs","repos_url":"https://api.github.com/users/hossam9995/repos","events_url":"https://api.github.com/users/hossam9995/events{/privacy}","received_events_url":"https://api.github.com/users/hossam9995/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T14:56:49Z","updated_at":"2016-03-30T14:56:49Z","body":"+1\r\n"}}