Good morning !! On a certain page I have a button that takes code and name of a client and I need to pass this information to an input from another page:
Function page that takes code and name
<tr *ngFor="let pesquisas of pesquisa">
<td class="text-center">{{pesquisas.Codigo}}</td>
<td class="text-center">{{pesquisas.Nome}}</td>
<th>
<button class="btn btn-default" (click)="PegarValores(pesquisas.Codigo, pesquisas.Nome)">
<i class="glyphicon glyphicon-ok" style="color:green;"></i> Iniciar
</button>
</th>
</tr>
Page that I want to receive input
<div class="col-md-4">
<label>Cliente:</label>
<div class="input-group">
<input type="text" class="form-control small" formControlName="codigoCliente" required>
<input type="text" class="form-control size" formControlName="nomeCliente">
<span class="input-group-btn">
<button type="button" class="btn btn-info" style="height:30px;">
<i class="glyphicon glyphicon-search a"></i>
</button>
</span>
</div>
</div>
Ps: I'm getting the information in the GetValues function (when clicking, the console shows the client I'm selecting)