Container#factoryCache

factoryCacheInheritingDictprivate Defined in packages/container/lib/container.js:57

Container#destroy()

destroyprivate Defined in packages/container/lib/container.js:136 A depth first traversal, destroying the container, its descendant containers and all their managed objects.

Container#cache

cacheInheritingDictprivate Defined in packages/container/lib/container.js:50

Container

Container Class PRIVATE Defined in: packages/container/lib/container.js:10 Module: ember A container used to instantiate and cache objects. Every Container must be associated with a Registry, which is referenced to determine the factory and options that should be used to instantiate objects. The public API for Container is still in flux and should not be considered stable.

Configuring Your App

Configuring Your App Ember CLI ships with support for managing your application's environment. Ember CLI will setup a default environment config file at config/environment. Here, you can define an ENV object for each environment, which are currently limited to three: development, test, and production. The ENV object contains three important keys: EmberENV can be used to define Ember feature flags (see the Feature Flags guide). APP can be used to pass flags/options to your application instan

Configuring Ember CLI

Configuring Ember CLI In addition to configuring your app itself, you can also configure Ember CLI. These configurations can be made by adding them to the .ember-cli file in your application's root. Many can also be made by passing them as arguments to the command line program. For example, a common desire is to change the port that Ember CLI serves the app from. It's possible to pass the port number from the command line with ember server --port 8080. To make this configuration permanent, ed

Conditionals

Conditionals Statements like if and unless are implemented as built-in helpers. Helpers can be invoked three ways, each of which is illustrated below with conditionals. The first style of invocation is inline invocation. This looks similar to displaying a property, but helpers accept arguments. For example: <div> {{if isFast "zoooom" "putt-putt-putt"}} </div> {{if}} in this case returns "zoooom" when isFast is true and "putt-putt-putt" when isFast is false. Helpers invoked as i

ComputedProperty#volatile()

volatileEmber.ComputedPropertypublic Defined in packages/ember-metal/lib/computed.js:165 Call on a computed property to set it into non-cached mode. When in this mode the computed property will not automatically cache the return value. It also does not automatically fire any change events. You must manually notify any changes if you want to observe this property. Dependency keys have no effect on volatile properties as they are for cache invalidation and notification when cached value is in

ComputedProperty#readOnly()

readOnlyEmber.ComputedPropertypublic Defined in packages/ember-metal/lib/computed.js:193 Call on a computed property to set it into read-only mode. When in this mode the computed property will throw an error when set. let Person = Ember.Object.extend({ guid: Ember.computed(function() { return 'guid-guid-guid'; }).readOnly() }); let person = Person.create(); person.set('guid', 'new-guid'); // will throw an exception Returns: Ember.ComputedProperty this

ComputedProperty#property()

property (path) Ember.ComputedPropertypublic Defined in packages/ember-metal/lib/computed.js:220 Sets the dependent keys on this computed property. Pass any number of arguments containing key paths that this computed property depends on. let President = Ember.Object.extend({ fullName: Ember.computed(function() { return this.get('firstName') + ' ' + this.get('lastName'); // Tell Ember that this computed property depends on firstName // and lastName }).property('firstName', '