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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:35:16+00:00 2026-06-09T16:35:16+00:00

When I do var bob = App.MyModel.create().setProperties({ name: bob marley }); router.get(‘applicationController’).connectOutlet(‘my’, bob); The

  • 0

When I do

var bob = App.MyModel.create().setProperties({ name: "bob marley" });
router.get('applicationController').connectOutlet('my', bob);

The instance of MyModel becomes the content property of the MyController instance. From what I read in the guide, the controller instance becomes the context for the handlebars template rendered by MyView.

Does that mean I always have to prefix the model’s properties with content. in the templates?

<h1>{{content.name}}</h1>

is there something I’m missing or is this the correct way of doing it?

  • 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-09T16:35:17+00:00Added an answer on June 9, 2026 at 4:35 pm

    If App.MyController extends Ember.ObjectController, then you should be able to use {{name}} directly. This is because Ember.ObjectController extends Ember.ObjectProxy, rendering the content reference unnecessary.

    If you’re using Ember.Controller, however, you’ll have to prefix the properties with content. like you said. For more details, see @trek’s controller documentation that was recently committed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get this to be if your name is Bob then
For example, if I have these arrays: var name = [Bob,Tom,Larry]; var age =
var JavascriptHelper = Backbone.Model.extend(JavascriptHelper, {}, // never initialized as an instance { myFn: function()
I have JSON/JS like this that populates data: var settingDefs = []; settingDefs.push({ name:'responses',
Here is a short transcript from my firebug console: >>> var a = {name:
I frequently find myself writing things like if($var == 'bob' || $var == 'steven
Suppose I have this code: var myArray = new Object(); myArray["firstname"] = "Bob"; myArray["lastname"]
For example, say I have: public var usersOnlineArray:Array = new Array(bob,jim,tim,marry,luke); and when I
print_r(array('name'=> 'bob', 'age' => 20, 'sex' => 'man')); Then : Array { [name] =>
I've been using the repository pattern described in Bob Cravens blog to create my

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.