ContainerDebugAdapter

Ember.ContainerDebugAdapter Class

PUBLIC

Extends: Ember.Object

Defined in: packages/ember-extension-support/lib/container_debug_adapter.js:16

Module: ember-extension-support

The ContainerDebugAdapter helps the container and resolver interface with tools that debug Ember such as the Ember Extension for Chrome and Firefox.

This class can be extended by a custom resolver implementer to override some of the methods with library-specific code.

The methods likely to be overridden are:

  • canCatalogEntriesByType
  • catalogEntriesByType

The adapter will need to be registered in the application's container as container-debug-adapter:main.

Example:

Application.initializer({
  name: "containerDebugAdapter",

  initialize(application) {
    application.register('container-debug-adapter:main', require('app/container-debug-adapter'));
  }
});
doc_EmberJs
2016-11-30 16:48:54
Comments
Leave a Comment

Please login to continue.