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

  • Home
  • SEARCH
  • 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 7632519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:38:47+00:00 2026-05-31T06:38:47+00:00

var App = Em.Application.create(); App.store = DS.Store.create({ adapter: DS.RESTAdapter.create() }); App.Todo = DS.Model.extend({ title:

  • 0
var App = Em.Application.create();

App.store = DS.Store.create({
    adapter: DS.RESTAdapter.create()
});

App.Todo = DS.Model.extend({
    title: DS.attr('string')
});

App.set('Todos', DS.ModelArray.create({
    store: App.store,
    type: App.Todo,
    content: []
}));

var todo = App.store.createRecord(App.Todo, {
    title: 'Cleanup'
});
App.get('Todos').pushObject(todo);

App.MyView = Em.View.extend({
    todosBinding: 'App.Todos'
});

  <script type="text/x-handlebars">
    {{#view App.MyView}}
      {{#each todos}}
        Todo: {{title}}
      {{/each}}
    {{/view}}
  </script>

Expected output:

Todo: Cleanup

What i actually get is:

Todo:

The title attribute is not displayed. If you inspect App.Todos.content, the object is there with correct title. Why is it not showing up in the view?

  • 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-05-31T06:38:48+00:00Added an answer on May 31, 2026 at 6:38 am

    I changed a little of your code to give it a more standard architecture:
    You should use a controller to retrieve the data, not instantiate the model array yourself, especially when using RestAdapter… (In this sample, I replaced the RestAdapter by the fixtureAdapter just to have it running offline).

    var App = Em.Application.create();
    
    App.store = DS.Store.create({
        revision: 3,
        adapter: DS.fixtureAdapter //DS.RESTAdapter.create()
    });
    
    App.Todo = DS.Model.extend({
        title: DS.attr('string')
    });
    
    App.Todo.FIXTURES = [{
        title: 'Cleanup'
    }];
    
    App.myController = Em.ArrayController.create({
        init: function() {
            this.set('content', App.store.findAll(App.Todo));
        }
    });
    
    App.MyView = Em.View.extend({
        todosBinding: 'App.myController.content'
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

var App = Ember.Application.create({ loaded:function(){ async(function(result) { data = SomeModel.create(result); App.model = data; console.log(data,
In my app I create and use a normal persistent store: - (NSPersistentStoreCoordinator *)
I create two windows in my app class as follows: var presentationWindow = new
I have a command line app and have the code chdir(/var); FILE *scriptFile =
I know almost nothing about linq. I'm doing this: var apps = from app
var i : integer; i := 1234567; Given the above, I want the string
In my ExtJS application I use EditorGridPanel to show data from server. var applicationsGrid
My directory structure looks like follows. (i'm using ext mvc ) www.mysite.com/ext/designer.js www.mysite.com/ext/app/view www.mysite.com/ext/app/store
i am creating a django app, my project name is domain_com and the application
i am new App Developer with Titanium. i want to create a window base

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.