component1.html
<input type="text" value="some text">
<button>next</button>
anotherComponent.html
<input type="text">//value of component1 should be shown here when the button is clicked.
Здесь есть два независимых компонента.
Мой вопрос заключается в том, как передать значение component1 другому компоненту при нажатии кнопки.