Note that there are some explanatory texts on larger screens.

plurals
  1. USJoaquim Rendeiro
    primarykey
    data
    text
    plurals
    1. CORegarding the variable being defined "in the very first line" of the file: the var moment you see in the first few lines only exists inside the immediate function (the anonymous function that encompasses the whole file and is called at the last line). Moment as a global variable is only added as one of the very last steps of this function: this['moment'] = moment;
      singulars
    2. COI had a similar problem in my hands a short time ago: a table full of locations, and given a location X (most commonly the user's location), I wanted to find out what are the N closest locations from my table, maybe filtering through other criteria at the same time. I realized that it would be very bad to keep querying the database and also that it would be too much to cache every single query, so I just ended up doing something like calculating the ordered list of locations according to distance from X, (mem)caching that for some time and applying additional display filters on that.
      singulars
    3. COYou should be able to do that -- "contacts" would be a resource under / (for example backed by an ArrayController) and ":contact_id" would be another resource (backed by an ObjectController) that has an "edit" route under it. Check the nested resources section in the docs: http://emberjs.com/guides/routing/defining-your-routes/#toc_nested-resources
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload