I have a very basic array
[
{
ticketId: 1,
name: "John",
},
{
ticketId: 124,
name: "Ads"
}
]
I show the data in the select
<ul class="dropdown-menu">
<li ng-repeat="ticket in tickets">
<a href="#">{{ticket.ticketId}}</a>
</li>
</ul>
But how do I use the data from the selected ticket from another place in my code
like
<tr>
<th>Name</th>
<td>{{???}}</td>
</tr>
Controller
$http.get(ticketAPIBaseUrl + '/tickets/' + customerNumber,
{withCredentials: false}).then(response => {
console.log(response);
vm.tickets = response.data;
}, error => {
console.log(error);
});