Application.buildRegistry()

buildRegistry (namespace) Ember.Registryprivatestatic

Inherited from Ember.Engine but overwritten in packages/ember-application/lib/system/application.js:992

This creates a registry with the default Ember naming conventions.

It also configures the registry:

  • registered views are created every time they are looked up (they are not singletons)
  • registered templates are not factories; the registered value is returned directly.
  • the router receives the application as its namespace property
  • all controllers receive the router as their target and controllers properties
  • all controllers receive the application as their namespace property
  • the application view receives the application controller as its controller property
  • the application view receives the application template as its defaultTemplate property

Parameters:

namespace Ember.Application
the application for which to build the registry

Returns:

Ember.Registry
the built registry
doc_EmberJs
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.