Skip navigation

Using data with views

Using data with views: Building a Website with Node.js and Express.js
Using data with views: Building a Website with Node.js and Express.js

In a real application you need to be able to pass data to your templates. You can use the render method to pass along a variable or an object from your routes to your views. You also have the option of setting a variable from within your applications that will behave as a local variable. Within the templates, you can use this special notation to access the variables

  • Overview
  • Transcript
  • View Offline
Resume Transcript Auto-Scroll
Skill Level Intermediate
3h 16m
Duration
62,676
Views
Show More Show Less
Skills covered in this course
Developer Web Web Development Express.js Node.js

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now