Although I'm new to AngularJS, I'm struggling to figure out how to handle a list of arrays returned from the searchAll
function.
console
0: {mobile: "12345678", lastname: "last01", firstname: "first01"}
1: {mobile: "87654321", lastname: "last02", firstname: "first02"}
...
I want to populate these arrays into separate input fields using
ng-repeat="client in ctrl.clients"
<input ... ng-model="ctrl.client.firstname"
<input ... ng-model="ctrl.client.lastname"
<input ... ng-model="ctrl.client.mobile"
When I try to display the data as text by populating the following:
<li>First name: {{client.firstname}}</li>
<li>Last name: {{client.lastname}}</li>
<li>Mobile: {{client.mobile}}</li>
Ideally, the data should be shown within the input fields.
Any suggestions on how to achieve this would be greatly appreciated!