Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:59:03+00:00 2026-06-15T04:59:03+00:00

In the Ember JS Application Guide , the author shows how to show a

  • 0

In the Ember JS Application Guide, the author shows how to show a list of shoes and then eventually just show one shoe.

The problem, is in his example, he mimics a slow JSON request (using setTimeout) to get ALL shoes but then he just refers directly to the object literal to show one shoe.

My question: What is the appropriate approach to pull data using JSON once for a collection of items, then refer to the downloaded collection for other methods (i.e Show one shoe)

I don’t need it to be persistent across sessions, just work until the user closes the browser/tab.

The JSFiddle

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:59:04+00:00Added an answer on June 15, 2026 at 4:59 am

    In the example, the setTimeout callback places the collection into App.Shoe, which is a global object. You can access it any time after that using App.Shoe._listOfShoes. So, if you just want to load the collection once and then re-use it, you could add confirm before making the request, whether the data has already been loaded. That is, something like:

    if (this._listOfShoes.length == 0) {
        // load the collection
    }
    return this._listOfShoes;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed the example given in ember application stucture guide http://emberjs.com/guides/outlets/ in order to
I've prepared a Fiddle to better expose the problem. http://jsfiddle.net/Xbxwr/ Code: App = Ember.Application.create();
I have several views in my Ember application. One of my views in registration
I have just started using Ember.js framework and I have simple problem. I have
I am working on converting a Backbone application into an Ember application using Ember
So I have an object of ArrayProxy kind var App = Ember.Application.create(); App.car =
Currently I have this code var App = Ember.Application.create(); App.user = Ember.Object.create({ people: customers
I am implementing an application using ember.js and couchdb. I choose ember-resource as database
Is there a way to embed one silverlight application in another silverlight application? if
I'm designing the intranet web application for our company. One of the app. requirements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.