You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However I can't figure out how to bind the variable foo to the someProperty property of the component. I've tried using an arrow function for the variables but this isn't defined when the component declaration is processed so it fails.
I've spent a few hours searching this but can't find any examples of this. Anyone got a working use-case?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to figure out how to bind variables to component properties in TypeScript.
I can get a query with static variables to work with the following:
However I can't figure out how to bind the variable
foo
to thesomeProperty
property of the component. I've tried using an arrow function for the variables butthis
isn't defined when the component declaration is processed so it fails.I've spent a few hours searching this but can't find any examples of this. Anyone got a working use-case?
Beta Was this translation helpful? Give feedback.
All reactions