LinkComponent#_invoke()

_invoke (event) private Defined in packages/ember-htmlbars/lib/components/link-to.js:613 Event handler that invokes the link, activating the associated route. Parameters: event Event

ember-routing

ember-routing Module Parent: ember Ember.Location returns an instance of the correct implementation of the location API. Implementations You can pass an implementation name (hash, history, none) to force a particular implementation to be used in your application. HashLocation Using HashLocation results in URLs with a # (hash sign) separating the server side URL portion of the URL from the portion that is used by Ember. This relies upon the hashchange event existing in the browser. Example: App.

MutableArray#pushObject()

pushObject (obj) public Defined in packages/ember-runtime/lib/mixins/mutable_array.js:164 Push the object onto the end of the array. Works just like push() but it is KVO-compliant. let colors = ['red', 'green']; colors.pushObject('black'); // ['red', 'green', 'black'] colors.pushObject(['yellow']); // ['red', 'green', ['yellow']] Parameters: obj * object to push Returns: object same object passed as a param

Ember.endPropertyChanges()

endPropertyChangesprivate Defined in packages/ember-metal/lib/property_events.js:214

Building a Complex Component

Building a Complex Component As they search for a rental, users might also want to narrow their search to a specific city. Let's build a component that will let them filter rentals by city. To begin, let's generate our new component. We'll call this component list-filter, since all we want our component to do is filter the list of rentals based on input. ember g component list-filter As before, this creates a Handlebars template (app/templates/components/list-filter.hbs), a JavaScript file (

DS.RESTSerializer#serialize()

serialize (snapshot, options) Object Inherited from DS.JSONSerializer but overwritten in addon/serializers/rest.js:508 Called when a record is saved in order to convert the record into JSON. By default, it creates a JSON object with a key for each attribute and belongsTo relationship. For example, consider this model: app/models/comment.js import DS from 'ember-data'; export default DS.Model.extend({ title: DS.attr(), body: DS.attr(), author: DS.belongsTo('user') }); The default se

DS.Model#didCreate event

didCreate Defined in addon/-private/system/model/model.js:444 Fired when a new record is commited to the server.

Service

Ember.Service Class PUBLIC Extends: Ember.Object Defined in: packages/ember-runtime/lib/system/service.js:35 Module: ember

Templates.helpers.link-to()

link-to (routeName, context, options) Stringpublic Defined in packages/ember-htmlbars/lib/components/link-to.js:6 The {{link-to}} component renders a link to the supplied routeName passing an optionally supplied model to the route as its model context of the route. The block for {{link-to}} becomes the innerHTML of the rendered element: {{#link-to 'photoGallery'}} Great Hamster Photos {{/link-to}} You can also use an inline form of {{link-to}} component by passing the link text as the fi

ClassNamesSupport#removeChild()

removeChild (view) Ember.Viewprivate Defined in packages/ember-views/lib/mixins/child_views_support.js:33 Removes the child view from the parent view. Parameters: view Ember.View Returns: Ember.View receiver