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


#1

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…


#2

in your openItem method, pass item object directly

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