我有一个ApplicationController带有controllerInt和controllerString属性的控制器。
我有一个RedSquareComponent带有componentInt和componentString属性的组件。
我通过 hbs-template绑定controllerInt和controllerString到componentInt和。componentStringcomponentString=controllerString="VALUE FROM CONTROLLER"
在RedSquareComponent我也有.on('init')将"SET ON INIT"值设置为的方法componentString。
我已经向组件添加了一个操作来处理单击某个对象(红色方块)并将某个值(例如,1)设置为componentInt.
但是当这个动作起作用时——componentString也会改变(我不知道为什么),并且变得等于"VALUE FROM CONTROLLER".
这是一个真正预期的行为吗?
相同的代码在 Ember 12.4 上运行良好,但我已经在几个 13.* 版本上检查过它——它不起作用。