Tuesday, 15 June 2010

meteor - How to check if the unloaded route and the loading route are same in Iron router? -



meteor - How to check if the unloaded route and the loading route are same in Iron router? -

in 1 of iron router route controller unload function have code segment run. need run code if unloaded route , loading routes different. how can check this?

myroutecontroller = routecontroller.extend({ unload: function() { // called when navigate new route session.set('postid', null); } })

i want set session null if current route , new route different.

meteor iron-router

No comments:

Post a Comment