ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
192 stars 187 forks source link

How to open selected data details in new page from list? #383

Open Anbarasan-321 opened 6 years ago

Anbarasan-321 commented 6 years ago

Hi this is my HTML

    <ion-item ng-repeat="item in course.items" ng-click="openItem({{item.id}})">
        <h1>{{item.title}} </h1>
       <p>{{item.description}}</p>
    </ion-item>

How I open selected data from a list on another page?Please help…

ansarikhurshid786 commented 5 years ago

Pass whole selected object:

 <ion-item ng-repeat="item in course.items" ng-click="openItem({{item}})">
        <h1>{{item.title}} </h1>
       <p>{{item.description}}</p>
    </ion-item>