http://jsfiddle.net/pauldechov/89S5p/初始化之前調用的根狀態connectOutlets?
在根的connectOutlets的App
似乎仍然未.initialize()
d。 connectOutlets不打算與root狀態一起使用嗎? (以及爲什麼?)
如果我每次頁面加載時都需要一些東西(比如在pangratz的NavigationView這裏:https://stackoverflow.com/a/11629977/363073),那麼我需要像他一樣擁有一個全包的root.index狀態?
我認爲這個討論https://github.com/emberjs/ember.js/pull/941將是有用的:) – 2012-08-01 22:14:12
@ sly7_7謝謝!將使用'{{view App.NavigationView controllerBinding =「App.router.navigationController」}}' 而不是'{{outlet「navigation」}}'基於trek的另一個討論:https://github.com /emberjs/ember.js/pull/941#issuecomment-6848712 – dechov 2012-08-01 22:28:26
酷:),我認爲這是一個答案http://stackoverflow.com/questions/11767161/emberjs-router-pangratz-example-class-active – 2012-08-01 22:35:23