My ObjectController:
App.TestController = Ember.ObjectController.extend
content: null
App.testController = App.TestController.create()
App.testController.set("content", Ember.Object.create({ question: "Question?" }))
console.log App.testController.get("question")
My view:
{{#view App.QuizView controller="App.testController"}}
<div>"{{question}}"</div>
{{/view}}
On my console, I get:
Question?
But my view is empty:
""
What am I doing wrong?
The problem comes from your template, you’re not binding the controller to the view.
Replace
With
You could try this solution in this JSFiddle.