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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:33:46+00:00 2026-06-10T08:33:46+00:00

I got problem with EmberJS I can’t understand The problem could be found in

  • 0

I got problem with EmberJS I can’t understand

The problem could be found in the jsfiddle:
http://jsfiddle.net/wLKKQ/

JS :

var fileUploader = [] || fileUploader;
fileUploader.app = Em.Application.create();

fileUploader.app.userDetailsView = Em.View.create({
    clientIP: null
});​

HTML:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <script type="text/x-handlebars">
        {{#view fileUploader.app.userDetailsView}}
            <h2>Hello Guest, your IP is: {{clientIP}}</h2>
        {{/view}}
    </script> 
    <script>
        $(function () {
            fileUploader.app.userDetailsView.set('clientIP', '::1');
        });
    </script>
</body>
</html>

I get the following error:

Uncaught Error: assertion failed: Unable to find view at path ‘fileUploader.app.userDetailsView’

  • 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-10T08:33:47+00:00Added an answer on June 10, 2026 at 8:33 am

    There are several problems in your code.

    • Ember.Application should be in an uppercase namespace (see The Emberist blog).
    • You must pass a view class to the #view helper, not an instance (you consequently have to replace Ember.View.create with Ember.View.extend.
    • Your script that edit the clientIP does not work, because now FileUploader.app.userDetailsView is a class. You can do the same thing with didInsertElement Ember.View method.
    • In your template, you have to specify view.clientIP, according to View Context Changes.

    Now this JSFiddle work :

    FileUploader = [] || fileUploader;
    FileUploader.app = Em.Application.create();
    FileUploader.app.userDetailsView = Em.View.extend({
        clientIP: null,
    
        didInsertElement: function() {
            this.set("clientIP", "::1");
        }
    });​
    

    The HTML:

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width" />
        <title>Index</title>
    </head>
    <body>
        <script type="text/x-handlebars">
          {{#view FileUploader.app.userDetailsView}}
             <h2>Hello Guest, your IP is: {{view.clientIP}}</h2>
          {{/view}}
        </script> 
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got problem with sending data in Android using httpPost. I found some example,
got a problem, can't get my head around this jquery and would appreciate your
I've got problem with my little C program. Maybe you could help me. char*
I got problem when I use rake command rake db:create rake aborted! Could not
I've got problem with adding new object pointer to collection of pointers. I can't
I've got problem with sorting my lucene.net index in .NET. I tried almost every
I think my apache webserver has got problem. I can't reference jquery.js I get
I got problem with parsing data. I send ajax request and as I can
I've got problem with character encoding of my http responses. I read many tips,
I have got problem with localizing my app. I have got file Resources.resw with

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.