[英]Get data from child component to parent component in nebular ui nbwindow
[英]Get the data from Child Component to Parent Component
我對動態組件的渲染有疑問。 我有一個Parent component
和一個Child component
。 在child component template
,有文本字段,用戶可以輸入值。 在那里,我還有一個提交按鈕,在Parent Component
聲明了提交按鈕的功能。
現在的問題是,當我單擊“提交”按鈕時,無法獲得用戶在“ Child Component Template
輸入的值。 我一定要得到的最新數據,從child
到parent
。 我真的不知道如何解決這個問題,我已經看過@output
但仍在閱讀有關它的教程。 您對如何實現這一目標有任何想法嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.