Notifications
Clear all
Topic starter
CORRECT TEXT
Given the following snippet:
• Server.append( ‘Show’ , function (req, res, next) )
According to SFRA, which two options shows a correct way to complete the code above in order to provide data to the response using a controller? Choose 2 answers
- A . res.viewData = {
data: myDataObject
};
res.render(‘/content/myPage’);
next();
});
B. res.setViewData ({
data: myDataObject
});
res.render(‘/content/myPage’);
next();
});
C. res.render(‘/content/myPage’,{
data: myDataObject
});
next();
});
D. res.render(‘/content/myPage’);
next();
}).append{(
Data:myDataObject
});
Suggested Answer: C
Posted : 23/01/2023 8:18 pm