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:437
- type
- String
- returns
- Object
lookupDescription (fullName) String public
Defined in packages/@ember/-internals/owner/index.ts:445
- fullName
- String
- returns
- String
makeToString (factory, fullName) String public
Defined in packages/@ember/-internals/owner/index.ts:453
- factory
- Factory
- fullName
- String
- returns
- String
normalize (fullName) String public
Defined in packages/@ember/-internals/owner/index.ts:462
- fullName
- String
- returns
- String
resolve (name) public
Defined in packages/@ember/-internals/owner/index.ts:427
- name
- String
The one required method for a Resolver
. Given a string, resolve it to a
Factory
, if one exists.