Skip to content

withSetter("assign") ? #268

Answered by sisp
Coffee2JS asked this question in Q&A
Jun 21, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

prop<string>('').withSetter() automatically creates a setter method for you, e.g. for a prop named x you can do model.setX(...) without defining setX yourself, whereas prop<string>('').withSetter('assign') lets you assign a new value, e.g. model.x = ....

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sisp
Comment options

Answer selected by xaviergonz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants