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?
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, l’ho capita fino a un certo punto. È un oggetto Ember che memorizza informazioni sull’applicazione.
Inoltre, ho trovato: discourse/app/assets/javascripts/discourse/pre-initializers/inject-discourse-objects.js.es6
che “inietta” informazioni specifiche di Discourse nel contenitore.
Sarebbe interessante se qualcuno potesse aggiungere qualcosa a questo.. ![]()