小编Int*_*lFX的帖子

有没有办法将所有绑定列表到Ember.Object?

coffeescript中的示例

window.APP = Ember.Application.create()

APP.stuff = Ember.Object.create(
  name: "The Name"
)

APP.things = Ember.Object.create(
  nameBinding: "APP.stuff.name"
)

APP.gizmos = Ember.Object.create(
  nameBinding: "APP.stuff.name"
)
Run Code Online (Sandbox Code Playgroud)

反正有没有检测到APP.stuff有2个绑定到它的名称属性?

javascript ember.js

6
推荐指数
1
解决办法
98
查看次数

标签 统计

ember.js ×1

javascript ×1