Ember API Documentation
To get started, choose a project (Ember or Ember Data) and a version from the dropdown menu. Ember has core methods used in any app, while Ember Data has documentation of the built-in library for making requests to a back end. If you're looking for documentation of the command line tool used to generate files, build your app, and more, visit ember-cli.
Commonly searched-for documentation
- Components also known as Glimmer Components. Components are reusable combinations of template and JavaScript.
- Tracked - make your templates responsive to property updates
- Template Tag Format - the authoring format for components
- Template Keywords and Helpers - built-in keywords and importable helpers that can be used in templates, such as the each keyword and on modifier
- Route - used to define individual routes, including the model hook for loading data
- Router#map - used to define the structure of your application's routes
- <LinkTo/> - a built-in component for linking to a Route within your application
- Service - an Ember object that lives for the duration of the application, and can be made available in different parts of your application
- RouterService - an injectable service that provides access to the router
- @ember/test-helpers. - a package that provides the testing API for Ember, also see the Testing guides.
- cached - a decorator for caching the result of the unusually expensive getters
- getOwner - a function used to get the owner of an object in Ember's Dependency Injection system
Classic documentation
These are older Ember concepts that have modern replacements. Although they are still supported, it is best to avoid using them in new code.
- Classic Ember Components - use Glimmer Components instead
- Computed Properties - use Tracked and native getters instead
- Computed Macros - use Tracked, Ember Reactive Collections, and native getters instead
- EmberArray - use native array or trackedArray instead
- EmberObject - the classic base class for all Ember objects; use native classes instead.
- Helpers - in modern Ember, helpers can be defined as plain functions