Location#create()

create (options) Objectdeprecatedprivate

Defined in packages/ember-routing/lib/location/api.js:147

Use the container to lookup the location implementation that you need.

This is deprecated in favor of using the container to lookup the location implementation as desired.

For example:

// Given a location registered as follows:
container.register('location:history-test', HistoryTestLocation);

// You could create a new instance via:
container.lookup('location:history-test');

Parameters:

options Object

Returns:

Object
an instance of an implementation of the `location` API
doc_EmberJs
2016-11-30 16:52:27
Comments
Leave a Comment

Please login to continue.