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
res.viewData = { data: myDataObject
};
res.render(‘/content/myPage’);
next();
});
res.setViewData ({ data: myDataObject
});
res.render(‘/content/myPage’);
next();
});
res.render(‘/content/myPage’,{
data: myDataObject
});
next();
});
res.render(‘/content/myPage’);
next();
}).append{( Data:myDataObject
});
Reveal Solution Next Question