mirror of
https://github.com/vale981/Vulcan
synced 2025-03-13 05:46:38 -04:00

There are 12 steps that can be found in the project by searching #tutorial-step-1 and so on up to 12. The video is here: http://docs.vulcanjs.org/example-simple.html
11 lines
547 B
JavaScript
11 lines
547 B
JavaScript
// modules/routes.js #tutorial-step-6 -
|
|
// Thi is the file that is called into package.js that allows the component to be found.
|
|
|
|
// First, we import this from vulcan core, which is a utility to add a new route.
|
|
import { addRoute, Components } from 'meteor/vulcan:core';
|
|
|
|
// Then, we add the component for what we want to add.
|
|
import '../components/movies/MoviesList.jsx';
|
|
|
|
// Next, we add the name 'movies', the path, which is the root, and the component name 'MovieList'.
|
|
addRoute({ name: 'movies', path: '/', componentName: 'MoviesList' });
|