-
Hi, Here is a code that parent app has a counter component, it works, but I like the method inc of Counter increase the variable count in the parent, not the local to Counter, any idea? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
sqllyw
Feb 18, 2022
Replies: 1 comment
-
found out, just access the this.count in the parent scope, it works: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sqllyw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
found out, just access the this.count in the parent scope, it works:
https://jsfiddle.net/xpozve1g/