Problem with list


#1

Community, I’m having a problem and hope you can help me.

I have a list of people, each of them has different data. I have a function that queries a webservice and it returns me some data of individuals. I got the idea to make that clicking the item in person, the information of that particular person is deployed. So far so good with putting together the list of the persons concerned but when clicking on the item shows me all data lists only 1 person. I leave you my code to look like armo my list.

<script id="misCorredores.html" type="text/ng-template">
   <ion-view title='{{title}}'>
    <ion-content padding="true">
      <div class="list" ng-repeat="corredor in resultados">
      <a class="item item-avatar" ng-click="estadisticasParticipante(corredor.i,corredor.pid)">
        <img src="img/icon_user.png">
        <h2>{{corredor.name}}</h2>
        <p>Ciudad : {{corredor.city}}</p>
        <div>
          <div id="datosParticipante" class="datagrid" style="margin-top:10px;">
            <table style="width:100%">
              <thead>
                <th>Punto</th>
                <th>Tiempo</th>
                <th>Hora</th>
              </thead>
              <tbody>
                <tr ng-repeat="datos in respuestas">
                   <td>{{datos.point}}</td>
                   <td>{{datos.time}}</td>
                   <td>{{datos.timeOfDay}}</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </a>
      </div>
    </ion-content>
  </ion-view>
</script>

What I like to do in each data link for each person with their item from the list.
In “corredor” I get the basic information of the person such as name, surname, id. With its id, I get the statesmen of that person. That’s why when clicking the function “estadisticasParticipante” which returns me the answers under runs. In “data” I get the data and by a table, but more I try I can not link corresponding to the person


#2

Up! if you do not understand what you ask me to explain, I need this help!


#3

Sounds like you should check out the tabs example to see how data is fetched via a factory.


#4

Mike thanks for responding,

Look, I leave you some pictures of what I do and see if it is possible

@mhartington

I have the list of users in this first image

In the second, I clicked on the first charge and fine the information, which should not happen is that the second user is not charged the same information. Should only show if you click on it.