0

@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?

Community
  • 1
  • 1
kabra
  • 1,306
  • 1
  • 17
  • 24
  • I think you can remove this question, as it's really related to your other question: http://stackoverflow.com/questions/11760949/emberjs-router-class-active. I will answer shortly here. Navigation.selected is undefined, because without using outlet (and so no go through connectOutlet), the controller's selected property is not set, and so, the binding not updated. – sly7_7 Aug 01 '12 at 21:46

1 Answers1

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?

Community
  • 1
  • 1
sly7_7
  • 11,961
  • 3
  • 40
  • 54