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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:29:50+00:00 2026-06-17T13:29:50+00:00

Ember has a Application which has ApplicationView, ApplicationController and ‘application’ named template and ‘main’

  • 0

Ember has a Application which has ApplicationView, ApplicationController and ‘application’ named template and ‘main’ named outlet and all these connect automatically.
eg.

App.ApplicationView = Ember.View.extend();

and

App.ApplicationController = Ember.Controller.extend();

so whenever my application template renders its default controller is an automatic instance of

App.ApplicationController

whose properties i can access in the template. But why does it not works with other views and controllers, i.e. if I have

App.SongView = Em.View.extend()

and
App.SongController = Em.Controller.extend()
these two do not connect. I can use any property of

App.SongController

in my song template.
I can use like :

{{view App.SongView}}

and in the template:

<script type='text/x-handlebars' data-template-name='song'>
    {{name}}
</script>

and if i have a name property in App.SongController then it wont get picked up because its not connected to the View.
although i can do it like this

{{view App.SongView controllerBinding='App.songController'}}

but this requires the instance of App.songController in my js file and also using this approach we are hard-coding the controller to the template.
What is the best way for this?

Update
I am also attaching a js fiddle for my problem here:
http://jsfiddle.net/anshulguleria/K6KPJ/

  • 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-17T13:29:51+00:00Added an answer on June 17, 2026 at 1:29 pm

    If you want to render a template and its associated controller and view, you can use the {{render}} template. It works similarly to this.render in the router.

    {{render "song" song}}
    

    This example will render the song template with an instance of App.SongController and App.SongView. It will set the song controller’s model to the value of song in the current context.

    Here is a working JSBin that illustrates how this works.

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

Sidebar

Related Questions

An application has three clients (desktop, iOS, Android), based on Ember.js. The 'desktop' client
I have a basic Ember application. It has 2 controls: a select element and
I have built an completely AJAX based application which has no page refresh and
I have an existing C# application that has a manifest file which is embedded
Is there any documentation which describes all the valid elements for a Windows application
I added the example application. http://jsfiddle.net/Sly7/amG56/ Js: App = Ember.Application.create(); App.ApplicationController = Ember.ArrayController.extend({ selectedBook:
I am using ember-rest in my application for persistence layer, and it has been
My html has an extension which embeded by other application: document.documentElement.appendChild((function () { var
I am writing an application which is based in HTML and has a JSON
Ember.View has a nice method called .appendTo(#container) which would allow me to specify a

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.