I base on group router
// Group
let MLMRoutes = FlowRouter.group({
prefix: '/mlm',
title: "MLMUPC",
titlePrefix: 'MLMUPC > ',
});
// Home
import '../imports/pages/home.js';
MLMRoutes.route('/home', {
name: 'mlm.home',
title: 'Home',
action(param, queryParam){
Layout.main('MLM_home');
}
});
// About
import '../imports/pages/about.js';
MLMRoutes.route('/about', {
name: 'mlm.about',
title: 'About',
action(param, queryParam){
Layout.main('MLM_about');
}
});
I tried to use {{isActivePath path='/mlm/home'}}, but it don't reactive when I change the link.
Hom | About
-----------
// home.html
Active Path: {{isActivePath path='/mlm/home'}}
// about.html
Active Path: {{isActivePath path='/mlm/about'}}
- It work for the first time, It show
active string on Home
- And then I try to change route by click
About, It don't show active string
Please help me.
I base on group router
I tried to use
{{isActivePath path='/mlm/home'}}, but it don't reactive when I change the link.activestring onHomeAbout, It don't showactivestringPlease help me.