Class Resolver
publicimport Resolver from '@ember/application/resolver';
A Resolver
is the mechanism responsible for looking up code in your
application and converting its naming conventions into the actual classes,
functions, and templates that Ember needs to resolve its dependencies, for
example, what template to render for a given route. It is a system that helps
the app resolve the lookup of JavaScript modules agnostic of what kind of
module system is used, which can be AMD, CommonJS or just plain globals. It
is used to lookup routes, models, components, templates, or anything that is
used in your Ember app.
This interface is not a concrete class; instead, it represents the contract a
custom resolver must implement. Most apps never need to think about this: in
the default blueprint, this is supplied by the ember-resolver
package.
knownForType (type) Object public
Defined in packages/@ember/-internals/owner/index.ts:446
- type
- String
- returns
- Object
lookupDescription (fullName) String public
Defined in packages/@ember/-internals/owner/index.ts:454
- fullName
- String
- returns
- String
makeToString (factory, fullName) String public
Defined in packages/@ember/-internals/owner/index.ts:462
- factory
- Factory
- fullName
- String
- returns
- String
normalize (fullName) String public
Defined in packages/@ember/-internals/owner/index.ts:471
- fullName
- String
- returns
- String
resolve (name) public
Defined in packages/@ember/-internals/owner/index.ts:436
- name
- String
The one required method for a Resolver
. Given a string, resolve it to a
Factory
, if one exists.