[2.0.0-rc2] Can't get $refs correctly
See original GitHub issueVue.js version
2.0 rc2
Reproduction Link
https://jsfiddle.net/1khxsgue/
Steps to reproduce
Just click run button, open console can find the error Cannot read property 'hello' of undefined
What is Expected?
The same code with 2.0 rc-1 https://jsfiddle.net/y35ot0du/ run without any error. We can access key testA
inthis.$refs
when components mounted
hook is called .
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
<SOLVED>IDE 2.0.0-rc2 problem with serial monitor and ...
Serial monitor works fine with my ESP32-DEV-KIT-1 MCUs. But I cannot get it to work with my ESP32-CAM. I decided to modify the...
Read more >vue.js - Vuejs can't access refs from component - Stack Overflow
I am getting the object though, but when I try to access the variable it is undefined. HTML. <div id="app> <template id="image-capture"> ...
Read more >Troubleshooting App Deployment Errors - Dash Python
This troubleshooting guide describes errors that you may encounter when deploying apps to Dash Enterprise as well as steps to resolve them.
Read more >OAuth 2.0 Resource Server JWT :: Spring Security
A consequence of this process is that the authorization server must be up and receiving requests in order for Resource Server to successfully...
Read more >Strongly Typed Configuration Settings in ASP.NET Core
If you don't you get this error: InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.Configuration.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dalphyx, seems to me is behaving as expected. There is a
v-if
directive set to false which alters the component execution. At the moment ofmounted
the test component is not available.@LinusBorg, if using v-if in a root node is forbidden, shouldn’t it warn about when doing such?