Engine#resolverFor()

resolverFor (namespace) *private

Defined in packages/ember-application/lib/system/engine.js:436

This function defines the default lookup rules for container lookups:

  • templates are looked up on Ember.TEMPLATES
  • other names are looked up on the application after classifying the name. For example, controller:post looks up App.PostController by default.
  • if the default lookup fails, look for registered classes on the container

This allows the application to register default injections in the container that could be overridden by the normal naming convention.

Parameters:

namespace Ember.Namespace
the namespace to look for classes

Returns:

*
the resolved value for a given lookup
doc_EmberJs
2016-11-30 16:51:52
Comments
Leave a Comment

Please login to continue.