Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navlist bind to model #73

Closed
benmonro opened this issue Apr 26, 2013 · 1 comment
Closed

navlist bind to model #73

benmonro opened this issue Apr 26, 2013 · 1 comment

Comments

@benmonro
Copy link

I'd like to bind a Navlist to a model rather than a controller, so that the list of items in my model can show up as a navlist... any ideas?

@dmathieu
Copy link
Contributor

I would still bind the items to the controller.
And, in your controller, get your content from the model.

App.NavController = Ember.ObjectController.extend({
  content: function() {
    App.NavModel.find(1)
  }.property()
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants