S
S
Svyatoslav Khusamov2016-06-27 10:54:06
Node.js
Svyatoslav Khusamov, 2016-06-27 10:54:06

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

1 answer(s)
I
Ilya Shatokhin, 2016-06-27
@khusamov

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 question

Ask a Question

731 491 924 answers to any question