とプロパティを持つコントローラーApplicationController
があります。controllerInt
controllerString
そして、プロパティを持つコンポーネントRedSquareComponent
がcomponentInt
ありcomponentString
ます。
とをhbs-template 経由でバインドcontrollerInt
します。controllerString
componentInt
componentString
componentString=controllerString="VALUE FROM CONTROLLER"
値をに設定するメソッドRedSquareComponent
もあります。.on('init')
"SET ON INIT"
componentString
コンポーネントにアクションを追加して、オブジェクト (赤い四角) のクリックを処理し、値 (1 など) を に設定しましたcomponentInt
。
しかし、このアクションが機能すると --componentString
も変化し (理由はわかりません)、 と等しくなり"VALUE FROM CONTROLLER"
ます。
それは本当に期待される動作ですか?
同じコードは Ember 12.4 でも問題なく動作しますが、いくつかの 13.* バージョンで確認しましたが、動作しません。