Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pass variable to partial view ejs

<% var fullName2 = fullName %>  // fullName is passed from express, you define it as var here
<%-include("partials/profile", {fullName2: fullName2}) %> // pass the var to ejs
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #variable #partial #view #ejs
ADD COMMENT
Topic
Name
9+2 =