I'm learning Angular, i need to pass a select value to a "p" in another component. So when the value of the select changes the "p" element also changes.
app.component.html
<navbar></navbar>
<todo-list-cards></todo-list-cards>
<test></test>
<router-outlet></router-outlet>
todo.component.html
<div class="contenedorTareas">
<div class="card text-white bg-primary mb-3" id="cards" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's
content.</p>
<select name="selector" id="selector">
<option>Option 1</option>
<option>Option 2</option>
</select>
</div>
</div>
<div class="cards">
<div class="card text-white bg-primary mb-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
</div>
</div>
</div>
</div>
test.component.html
<p><!-- Here the value of the <select> should be--></p>