Z
Z
Zheka Dzecina2015-12-17 15:05:36
meteor
Zheka Dzecina, 2015-12-17 15:05:36

How to change the class depending on the page?

Hello!
There is a helper in html .. depending on which page the user is on, you need to give him the right class. How to catch this event?
here is the html structure
https://jsfiddle.net/4tkzpqww/1/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Komarov, 2015-12-17
@Zhe1ka

if you are using iron router, Router.current().route.getName()then using Session.set/get to issue the desired
PS class in the case of flow routerFlowRouter.getRouteName();

Z
Zheka Dzecina, 2015-12-17
@Zhe1ka

Yes, great, it helped, thanks!
PS: for iron router

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question