mardi 23 juin 2015

Calling ember component method from route?

I have a route that looks like this: http://localhost:4200/server/1/database/1/schema/1 and a tree-view component whose branches correspond to that url. So the above url shows the branches that are currently expanded. What I'd like to happen is that after page refresh with the above url in browser's address bar the branches should automatically expand. So how do I achieve that? Is there some init method on the component class that would let me get the information about current url therefore allowing me to programatically expand nodes on my tree view?




Aucun commentaire:

Enregistrer un commentaire