不知何故,即使在最简单的示例中,当我尝试转换到另一个状态/路线时,我想出的视图也会消失。
我的索引路线如下所示:
--Application-------------------------------
| --Header-------------------------------- |
| | --ViewA----------------------------- | |
| | | View A! | | |
| | |__________________________________| | |
| | | |
| | --ViewB----------------------------- | |
| | | View B! | | |
| | |__________________________________| | |
| |______________________________________| |
| |
| --Main---------------------------------- |
| | I stay here, no matter what! | |
| |______________________________________| |
|__________________________________________|
一旦我进入“下一个”状态,ViewB 就会消失,看起来像这样:
--Application-------------------------------
| --Header-------------------------------- |
| | --ViewA----------------------------- | |
| | | View A! | | |
| | |__________________________________| | |
| |______________________________________| |
| |
| --Main---------------------------------- |
| | I stay here, no matter what! | |
| |______________________________________| |
|__________________________________________|
可以在此示例应用程序http://jsfiddle.net/SAra5/4/中看到该行为