emberjs router @pangratz example class active

北慕城南 提交于 2019-12-25 05:11:18

问题


@pangratz give a answer in emberjs - how to mark active menu item using router infrastructure

The question is why when i change {{outlet "navigation"}} to {{view App.NavigationView}}, NavigationView.selected is undefined?


回答1:


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?



来源:https://stackoverflow.com/questions/11767161/emberjs-router-pangratz-example-class-active

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!