- Do you have a class with read only properties?
- Need to bind to those properties?
- Getting: warning: unable to bind to property 'propertyName' on class 'com.example.package::ClassName'?
Add the Bindable metatag to your function and specify an event to be associated with it's update.
return this._myExposedVar;
}
}
}
通过赋值时发送事件,和捕捉事件,来控制属性只读。赋值即变成取值。