This repository was archived by the owner on May 1, 2025. It is now read-only.
  
  
  
  
-
| https://github.com/vuejs-jp/learn.nuxt.com/blob/main/content/1.vue/5.components/index.md で何か困ったことや質問があれば遠慮なく質問して下さい | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ubugeeei
          
      
      
        Oct 19, 2024 
      
    
    Replies: 1 comment 2 replies
-
| テキストに がありますが、両方同じ意味でしょうか? | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
@nanauda
ありがとうございます!
こちらは Emit で受け渡すデータの型を表しています!
の場合は emit でデータを渡していないと思うのですが,
の場合は
'Hello Vue!'という文字列を親に伝搬しています.これの型が[string]です.さらに追加で複数渡したい場合は
[string, number, string]のようにタプルの形式で定義することができます.Labeled Tuple で名前をつけてあげるとよりわかりやすいです! (e.g.
[msg: string, count: number, user: User])参考: