DS.InvalidError

DS.InvalidError Class Defined in: addon/adapters/errors.js:58 Module: ember-data A DS.InvalidError is used by an adapter to signal the external API was unable to process a request because the content was not semantically correct or meaningful per the API. Usually this means a record failed some form of server side validation. When a promise from an adapter is rejected with a DS.InvalidError the record will transition to the invalid state and the errors will be set to the errors property on

Copyable#frozenCopy()

frozenCopyObjectdeprecatedprivate Defined in packages/ember-runtime/lib/mixins/copyable.js:42 Use Object.freeze instead. If the object implements Ember.Freezable, then this will return a new copy if the object is not frozen and the receiver if the object is frozen. Raises an exception if you try to call this method on a object that does not support freezing. You should use this method whenever you want a copy of a freezable object since a freezable object can simply return itself without

Copyable#copy()

copy (deep) Objectprivate Defined in packages/ember-runtime/lib/mixins/copyable.js:29 Required. You must implement this method to apply this mixin. Override to return a copy of the receiver. Default implementation raises an exception. Parameters: deep Boolean if `true`, a deep copy of the object should be made Returns: Object copy of receiver

Ember.meta()

meta (obj, writable) Objectprivate Defined in packages/ember-metal/lib/meta.js:360 Retrieves the meta hash for an object. If writable is true ensures the hash is writable for this object as well. The meta object contains information about computed property descriptors as well as any watched properties and other information. You generally will not access this information directly but instead work with higher level methods that manipulate this hash indirectly. Parameters: obj Object The

DS.Adapter#shouldReloadAll()

shouldReloadAll (store, snapshotRecordArray) Boolean Defined in addon/adapter.js:527 Available since 1.13.0 This method is used by the store to determine if the store should reload all records from the adapter when records are requested by store.findAll. If this method returns true, the store will re-fetch all records from the adapter. If this method returns false, the store will resolve immediately using the cached records. For example, if you are building an events ticketing system, in wh

String#capitalize()

capitalize (str) Stringpublic Defined in packages/ember-runtime/lib/system/string.js:319 Returns the Capitalized form of a string 'innerHTML'.capitalize() // 'InnerHTML' 'action_name'.capitalize() // 'Action_name' 'css-class-name'.capitalize() // 'Css-class-name' 'my favorite items'.capitalize() // 'My favorite items' 'privateDocs/ownerInvoice'.capitalize(); // 'PrivateDocs/ownerInvoice' Parameters: str String The string to capitalize. Returns: String The capita

Component

Ember.Component Class PUBLIC Extends: Ember.View Uses: Ember.ViewTargetActionSupport Defined in: packages/ember-htmlbars/lib/component.js:21 Module: ember-views An Ember.Component is a view that is completely isolated. Properties accessed in its templates go to the view object and actions are targeted at the view object. There is no access to the surrounding context or outer controller; all contextual information must be passed in. The easiest way to create an Ember.Component is via a temp

DS.Model#isEmpty

isEmpty{Boolean} Defined in addon/-private/system/model/model.js:54 If this property is true the record is in the empty state. Empty is the first state all records enter after they have been created. Most records created by the store will quickly transition to the loading state if data needs to be fetched from the server or the created state if the record is created on the client. A record can also enter the empty state if the adapter is unable to locate the record.

LinkComponent#disabled

disabledprivate Defined in packages/ember-htmlbars/lib/components/link-to.js:530 Accessed as a classname binding to apply the LinkComponent's disabledClass CSS class to the element when the link is disabled. When true interactions with the element will not trigger route changes.

Defining Your Routes

Defining Your Routes When your application starts, the router matches the current URL to the routes that you've defined. The routes, in turn, are responsible for displaying templates, loading data, and setting up application state. To define a route, run ember generate route route-name This creates a route file at app/routes/route-name.js, a template for the route at app/templates/route-name.hbs, and a unit test file at tests/unit/routes/route-name-test.js. It also adds the route to the rout