Answer the question
In order to leave comments, you need to log in
What is the fundamental difference between app.locals and app.set(), app.get()?
What is the fundamental difference between app.locals and app.set(), app.get() in terms of storing any application data?
Answer the question
In order to leave comments, you need to log in
app.locals are always merged with res.locals (essentially global locals)
app.set() and app.get() are used to set/read application settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question