Registry#fallback

fallbackRegistryprivate Defined in packages/container/lib/registry.js:50 A backup registry for resolving registrations when no matches can be found.

Registry#factoryTypeInjection()

factoryTypeInjection (type, property, fullName) private Defined in packages/container/lib/registry.js:555 Used only via factoryInjection. Provides a specialized form of injection, specifically enabling all factory of one type to be injected with a reference to another object. For example, provided each factory of type model needed a store. one would do the following: let registry = new Registry(); registry.register('store:main', SomeStore); registry.factoryTypeInjection('model', 'store',

Registry#factoryInjection()

factoryInjection (factoryName, property, injectionName) private Defined in packages/container/lib/registry.js:594 Defines factory injection rules. Similar to regular injection rules, but are run against factories, via Registry#lookupFactory. These rules are used to inject objects onto factories when they are looked up. Two forms of injections are possible: Injecting one fullName on another fullName Injecting one fullName on a type Example: let registry = new Registry(); let container = regi

Registry#expandLocalLookup()

expandLocalLookup (fullName, options) Stringprivate Defined in packages/container/lib/registry.js:778 Given a fullName and a source fullName returns the fully resolved fullName. Used to allow for local lookup. let registry = new Registry(); // the twitter factory is added to the module system registry.expandLocalLookup('component:post-title', { source: 'template:post' }) // => component:post/post-title Parameters: fullName String options [Object] source [String] the fullname

Registry#describe()

describe (fullName) Stringprivate Defined in packages/container/lib/registry.js:262 A hook that can be used to describe how the resolver will attempt to find the factory. For example, the default Ember .describe returns the full class name (including namespace) where Ember's resolver expects to find the fullName. Parameters: fullName String Returns: String described fullName

Registry#container()

container (options) Containerprivate Defined in packages/container/lib/registry.js:139 Creates a container based on this registry. Parameters: options Object Returns: Container created container

Registry

Registry Class PRIVATE Defined in: packages/container/lib/registry.js:9 Module: ember A registry used to store factory and option information keyed by type. A Registry stores the factory and option information needed by a Container to instantiate and cache objects. The API for Registry is still in flux and should not be considered stable.

Redirecting

Redirecting Sometimes you want to redirect a user to a different page than what they requested for. For example, if they're not logged in, you might want to prevent them from editing their profile, accessing private information, or checking out items in their shopping cart. Usually you want to redirect them to the login page, and after they have successfully logged in, take them back to the page they originally wanted to access. There are many other reasons you probably want to have the last

Quick Start

Quick Start This guide will teach you how to build a simple app using Ember from scratch. We'll cover these steps: Installing Ember. Creating a new application. Defining a route. Writing a UI component. Building your app to be deployed to production. Install Ember You can install Ember with a single command using npm, the Node.js package manager. Type this into your terminal: npm install -g ember-cli Don't have npm? Learn how to install Node.js and npm here. For a full list of dependencies

Query Parameters

Query Parameters Query parameters are optional key-value pairs that appear to the right of the ? in a URL. For example, the following URL has two query params, sort and page, with respective values ASC and 2: http://example.com/articles?sort=ASC&page=2 Query params allow for additional application state to be serialized into the URL that can't otherwise fit into the path of the URL (i.e. everything to the left of the ?). Common use cases for query params include representing the current