MCPcopy Index your code
hub / github.com/aurelia/framework / instance

Method instance

src/framework-configuration.ts:233–236  ·  view source on GitHub ↗

* Adds an existing object to the framework's dependency injection container. * @param type The object type of the dependency that the framework will inject. * @param instance The existing instance of the dependency that the framework will inject. * @return Returns the current FrameworkConfi

(type: any, instance: any)

Source from the content-addressed store, hash-verified

231 * @return Returns the current FrameworkConfiguration instance.
232 */
233 instance(type: any, instance: any): FrameworkConfiguration {
234 this.container.registerInstance(type, instance);
235 return this;
236 }
237
238 /**
239 * Adds a singleton to the framework's dependency injection container.

Callers 3

aurelia.spec.tsFile · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected