Skip to content

js getters scope problem #4504

Answered by ekwoka
BorisKM asked this question in 5. Bugs
Jan 21, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This is not a problem with Alpine, but a factor of how JS works.

this refers to the immediate object the method is on, not any other parent.

Replies: 1 comment 1 reply

Comment options

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

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