Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Completing the next step in the Side menu app (a detail page)

$
0
0

@mushy wrote:

Does anyone know what I need to enter in my playlist.html page to get the selected item from the playlist loading in?

The data in the controller is
.controller('PlaylistsCtrl', function($scope, $state, $timeout) {
$scope.playlists = [
{ title: 'Video 1', id: 1, video: 'video/vid1.mp4', duration: '4:00' },
{ title: 'Video 2', id: 2, video: 'video/vid2.mp4', duration: '4:00' },
];

Playlists (List of items)
<ion-view view-title="My Video List">
<ion-content>
<ion-list>
  <ion-item ng-repeat="playlist in playlists" href="#/app/playlists/{{playlist.id}}">
    {{playlist.title}}
  </ion-item>
 </ion-list>
  </ion-content>
  </ion-view>

How can I get a detail page of each showing title, duration and the video displayed in a HTML window?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>