I want to display different pages as clicked on different tabs in nav bar.What is the correct approach

Hi guyz, My site has 3 tabs in navbar . i want to display different pages on different tabs.As i dont want to reload my page .How can i change the content of the window according the tab.
My current method
I make template of all the 3 tabs and give them by default style “none”.When i clicked on any tab, i change the css of that particular content of tab from display “none” to display “block” by event handler of meteor.I think its wrong approach .Please help me!!

Check the Meteor Guide on routing. You’ll want to study the section on rendering based on the route.

okk…thanks for the once again.i amnew to meteor so thats why i am facing so much trouble

1 Like