我需要知道如何填充离子骨架的历史。在我自己熟悉的窗口中:
window.history.pushState({upage:sel}, sel, document.location.origin + document.location.pathname +sel);
我的问题是,我需要记录那个值得庆祝的“名称”页面,因为我花了点击后退按钮,他应该是原生的先前视觉,这种方式使用方法返回窗口只返回一个视力。
答案 0 :(得分:1)
这是操纵历史记录的一种方法,您可以将一些选项传递给每个控制器,以便在只有堆叠/操作目的时更改行为。
希望这些片段有用!
// Jump to state "first-state"
$state.go('first-state', {options: values, title: "Custom title"}).then(function() {
// Make this state the Root (or not, or at another step)
$ionicHistory.clearHistory();
// Jump to "another-state"
$state.go('another-state', {options: values}).then(function() {
// [...]
$state.go('another-jump', {options: values});
});
});