Creating Your App

Creating Your App Welcome to the Ember Tutorial! This tutorial is meant to introduce basic Ember concepts while creating a professional looking application. If you get stuck at any point during the tutorial feel free to visit https://github.com/ember-learn/super-rentals for a working example of the completed app. Ember CLI, Ember's command line interface, provides a standard project structure, a set of development tools, and an addon system. This allows Ember developers to focus on building a

DS.RESTAdapter#query()

query (store, type, query) Promise Inherited from DS.Adapter but overwritten in addon/adapters/rest.js:475 Called by the store in order to fetch a JSON array for the records that match a particular query. The query method makes an Ajax (HTTP GET) request to a URL computed by buildURL, and returns a promise for the resulting payload. The query argument is a simple JavaScript object that will be passed directly to the server as parameters. Parameters: store DS.Store type DS.Model que

Engine#runInstanceInitializers()

runInstanceInitializersprivate Defined in packages/ember-application/lib/system/engine.js:154 Available since 1.12.0

Enumerable#map()

map (callback, target) Arraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:326 Maps all of the items in the enumeration to another value, returning a new array. This method corresponds to map() defined in JavaScript 1.6. The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration. index is the current index in the iteration. enumerable is the enumerable

Component#init()

initprivate Inherited from Ember.CoreObject but overwritten in packages/ember-views/lib/mixins/view_support.js:388 Setup a view, but do not finish waking it up. configure childViews register the view with the global views hash, which is used for event dispatch

Enumerable#nextObject()

nextObject (index, previousObject, context) Objectprivate Defined in packages/ember-runtime/lib/mixins/enumerable.js:102 Required. You must implement this method to apply this mixin. Implement this method to make your class enumerable. This method will be called repeatedly during enumeration. The index value will always begin with 0 and increment monotonically. You don't have to rely on the index value to determine what object to return, but you should always check the value and start from

Array#arrayContentDidChange()

arrayContentDidChange (startIdx, removeAmt, addAmt) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:536 If you are implementing an object that supports Ember.Array, call this method just after the array content changes to notify any observers and invalidate any related properties. Pass the starting index of the change as well as a delta of the amounts to change. Parameters: startIdx Number The starting index in the array that did change. removeAmt Number The

Ember.addListener()

addListener (obj, eventName, target, method, once) public Defined in packages/ember-metal/lib/events.js:70 Add an event listener Parameters: obj eventName String target Object|Function A target object or a function method Function|String A function or the name of a function to be called on `target` once Boolean A flag whether a function should only be called once

DS.Store#flushPendingSave()

flushPendingSaveprivate Defined in addon/-private/system/store.js:1708 This method is called at the end of the run loop, and flushes any records passed into scheduleSave

Application#didBecomeReady()

didBecomeReadyprivate Defined in packages/ember-application/lib/system/application.js:700