这里有什么问题?为什么视图中的 contentBinding 不起作用?
视图中的输出
内容未定义
路由器.coffee
App.Router.map ->
@route "show"
@route "intro",
intro_controller.coffee
App.IntroController = Ember.ArrayController.extend
content: []
createRecords:(files) ->
@set('content', Ember.A())
person = Ember.Object.create(username: "hello world")
@pushObject person
console.info "content in controller", @get('content')
@transitionTo 'show'
show_view.coffee
App.ShowView = Ember.View.extend
contentBinding: 'App.IntroController.content',
didInsertElement: ->
console.info "content in view", @get('content')