emberjs router @pangratz示例类活动 [英] emberjs router @pangratz example class active
问题描述
@pangratz在 emberjs-如何给出答案标记使用路由器基础结构的活动菜单项
@pangratz give a answer in emberjs - how to mark active menu item using router infrastructure
问题是为什么当我更改 {{outlet navigation}}
到 {{view App.NavigationView}}
, NavigationView.selected
是否未定义?
The question is why when i change {{outlet "navigation"}}
to {{view App.NavigationView}}
, NavigationView.selected
is undefined?
推荐答案
我认为使用{{view App.NavigationView controllerBinding = App.router.navigationController}}应该可以使您的代码正常工作。感谢这个问题:
I think using {{view App.NavigationView controllerBinding="App.router.navigationController"}} should make your code working. Thanks to this question: connectOutlets from root state called before initialization?
这篇关于emberjs router @pangratz示例类活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!