1

私のAngular 2アプリには、別のコンポーネントを含むコンポーネント(mainComp)があります

 <my-comp></my-comp>

my-compは、 (選択/クリック時に)値を発行します(カスタムドロップダウンです)

this.optionSelected.emit(currentOption == "Not described" ? null : currentOption);

mainCompによってドロップダウンの値を受け取ります

4

1 に答える 1