ما هو كائن Container بالضبط؟

What is the idea container object which is passed in the initialize() callback. It is often seen in the codebase like “Discourse.container”?

Is it like a global object which keeps the information stored in the frontend?

Ok, I understood it to some degree. Its an Ember object storing information about the application.

Also, I found : discourse/app/assets/javascripts/discourse/pre-initializers/inject-discourse-objects.js.es6

which “injects” discourse specific information into the container.

It would be interesting if someone could add to this… :slight_smile: