我正在尝试设置控制器的属性
试图这样做
{{view Ember.Select contentBinding="App.tastingsController.names"}}
这没用
App.tastingsController = Ember.ArrayController.extend
names: ["Velato", "Abbastanza limpido", "Limpido", "Cristallino", "Brillante"]
虽然这个版本工作正常(但给出了这个警告WARNING: The immediate parent route did not render into the main outlet and the default 'into' option may not be expected
:)
App.tastingsController.names = ["Velato", "Abbastanza limpido", "Limpido", "Cristallino", "Brillante"]
这是我的路线:
App.Router.map ->
@route "home", { path: "/" }
@route "about"
@resource "tastings", ->
@route "new"
@resource "tasting", { path: ":tasting_id"}
你能解释一下为什么吗?
(在这里找到)
谢谢你
马可