You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Karen Coombs edited this page May 31, 2018
·
1 revision
Views can be use content to be dynamically generated. Data is passed into the view via an associative array.
The key of the array is the name of the variable in the view.
Example:
res.render('display-user', {user: user});
Make the User View Dynamic
Open display-user.html
Use user variable passed from route and User object methods to fill in fields in display-user.html