Closed DDavis1025 closed 5 years ago
So I just started to use iron:router with meteor add iron:router with earlier versions as well and in my router.js file:
Router.route('/', function () { this.render('mainpage'); });
Router.route('/videopage');
and in a main.js file in my client without the router.js file
Router.route('/video', function () { this.render('video'); });
giving me this error
This has worked for me in the past but not right now
You have to create an .html file with template tag inside and add attribute name equals mainpage or video. Like this:
template
name
mainpage
video
<template name="mainpage"> <!-- Your content here --> </template>
So I just started to use iron:router with meteor add iron:router with earlier versions as well and in my router.js file:
Router.route('/', function () { this.render('mainpage'); });
Router.route('/videopage');
and in a main.js file in my client without the router.js file
Router.route('/', function () { this.render('mainpage'); });
Router.route('/video', function () { this.render('video'); });
giving me this error
This has worked for me in the past but not right now