Reputation: 1509
I'm accessing iron:router in a helper which builds breadcrumbs, but oddly I'm getting two objects returned when I do this:
console.log(typeof Router.current().route.path(this));
I get back:
object
string
The object is null
btw...
Does anyone know why? I think it has something to do with reactivity but I don't know where to look to begin.
Upvotes: 0
Views: 78
Reputation: 518
While this is not a direct answer to your question, this tutorial covers a lot about iron:router: http://kukuruku.co/hub/javascript/meteor-how-to-build-a-todo-list
Upvotes: 0
Reputation: 1881
I don't really know the answer for this, but easiest breadcrumbs are Iron.Location.get().path.split("/")
Upvotes: 1