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:

1
2
3
4
5
// 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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.