ref value is undefined in vue (modal, textarea, $refs)


I am having trouble with getting ref from the tag. I can see other ref values, a, but I cannot see b value by using console.log(this.$refs); Did I miss something? please let me know if you have ideas or solutions. Thank you in advance

I am using Vuejs and here is my code as below,

    <p> test</p>
      <textarea ref="b" />
export default {
  data() {
    return {};
 mounted() {
      console.log(this.$refs.b); // undefined   


you can try this one


Recent Tips

  1. Azure - HDInsight Hbase Data Insertion Failed
  2. SignalR overwriting OnConnected(), OnDisconnected()
  3. DatePickerDialog displays with two borders
  4. "type 'double' is not a subtype of type 'int' in type cast" error in flutter. What should i do?
  5. hiding the autocomplete list when user click outside the textbox is not working as expected
  6. JSF IceFaces basic problem with redisplaying input value
  7. How to validate material ui TextField in reactjs?
  8. Go and MongoDB connection won't work with panic log "no reachable server"
  9. WordPress Posts Pagination Not Working
  10. F# sprintf won't print in interactive console
  11. Spring Integration get FTP files recursively with outbound-gateway
  12. Jade mixins not getting working from external file
  13. Can not access defined exports from the webpack bundle?
  14. Completely new to Node.js - API Programming
  15. Formatting Compare-Object Ouput
  16. Add dynamically added textbox value from User Control to main form
  17. Create a ByteBuf in Netty 4.0
  18. Is it possible to do computation before super() in the constructor?
  19. Q-learning Updating Frequency
  20. Wrong reload order when using Gulp and browserSync
  21. I use hugo build static page. But don't have content
  22. How to change background color and set bar colors based on conditional formatting in VBA?
  23. Problem when comparing two numeric values in SAS
  24. Is ACE reactor timer managment thread safe?
  25. Why Express res.render dumps the render output (EJS template) in console?
  26. Define generic typescript sort function of a certain type
  27. Eclipse RCP: TableViewer setInput from another view
  28. Migrating data from RDBMS to Arango DB: Bulk upload
  29. How can I check the existence of a key/file on an Amazon S3 Bucket using AWS iOS SDK v2?
  30. Can exponentially long bitstrings be stored in (and retrieved from) qubits reliably?