Meteor doesn’t come with a built-in routing system, but you can use third-party packages like iron:router or kadira:flow-router. Here’s an example using iron:router:
meteor add iron:router
Define Routes:
import { Router } from 'iron:router';
Router.route('/', function () {
this.render('home');
});
Router.route('/about', function () {
this.render('about');
});
Leave a Reply