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 9274045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:15:38+00:00 2026-06-18T16:15:38+00:00

I am trying to make an ember application. I have a computed property and

  • 0

I am trying to make an ember application. I have a computed property and the controller looks like this:

// The Controller

Todos.Controller = Ember.Controller.create({

    // ** SNIP ** //

    countCompleted: function()
    {
        return this.get('todos').filterProperty('completed', true).length
    }.property(),
});

// The View

{{Todos.Controller.countCompleted.property}} Items Left

Now the tutorial I’m following is using an older version of Ember.JS. I’ve fixed every error but this:

Uncaught Error: assertion failed: Ember.Object.create no longer supports defining computed properties.

What’s the alternative way to do this?

  • 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-18T16:15:39+00:00Added an answer on June 18, 2026 at 4:15 pm

    The computed property is only deprecated on the create() function of an object. If you wish to create a computed property, then you must first extend() the object, and then create() it.

    For example:

    // The Controller
    
    Todos.TodosController = Ember.Controller.extend({
    
        // ** SNIP ** //
    
        countCompleted: function()
        {
            return this.get('todos').filterProperty('completed', true).length
        }.property(),
    });
    
    // Note the lower case 't' here. We've made a new object
    Todos.todosController = Todos.TodosController.create();
    
    // The View
    
    
    // We reference the created object here (note the lower case 't' in 'todosController')
    {{Todos.todosController .countCompleted.property}} Items Left
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to make a simple number clicker control for BlackBerry 6/7, like this: At
I have my AIR application i.e MyAIRApplication ready. I am trying to make a
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Sorry if this has been answered before, but I am trying to make an
I am trying to learn how to use jsPlumb in my Ember.js application so
I'm trying to make a simple blog like page. And my main problem right
Im trying to make a little server for my homework.This is very simple project
I am trying to embed Google Search inside my application. How can I make
I'm trying to parse a json dataset in my ember data models but this
I'm trying make a login window where a user is prompted to enter their

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.