-
What's the difference between
and
? Current doc only talks about the first one, but the 'assign' variant is still in the api... I stumbled across it when upgrading to latest version & looking at changelog. |
Beta Was this translation helpful? Give feedback.
Answered by
sisp
Jun 21, 2021
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
xaviergonz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
prop<string>('').withSetter()
automatically creates a setter method for you, e.g. for a prop namedx
you can domodel.setX(...)
without definingsetX
yourself, whereasprop<string>('').withSetter('assign')
lets you assign a new value, e.g.model.x = ...
.