chrisfarber / ember-breadcrumbs

An Ember.js component for adding breadcrumbs to your app.
MIT License
79 stars 34 forks source link

Is possible to configure breadCrumb and breadCrumbPath in Routes #1

Closed albertosouza closed 10 years ago

albertosouza commented 10 years ago

Hi @chrisfarber, Is possible to configure breadCrumb and breadCrumbPath in Routes Ember.Route.extend ?

I think will be easy to configure this in Routes I am trying to use you module in my project: https://github.com/wejs/we

chrisfarber commented 10 years ago

It could be made possible, yes.

I believe that it is a better pattern to use your controllers, however. By using your controllers, you can define breadCrumb / breadCrumbPath as computed properties that are derived from your model objects.

Can you make a good argument for why it's preferable to look at the route object instead of the controller?

albertosouza commented 10 years ago

Good point. In some moments do not need to create a controller for a given display or html. But you're right, I'll use it in Controllers