Hi all,
I am fairly new to coding and Angular 2 and was following a tutorial on
YouTube, which was very good however it stopped 90% through completing the
demo!
At present, the onSelect function is set to show the coding on the console:
*Playlist.Component.Ts*
*export class PlaylistComponent{*
* onSelect(vid:Video) {*
* console.log(JSON.stringify(vid));*
* }*
* }*
*Playlist.Component.HTML*
*<table class="table table-hover">*
* <thead>*
* <tr>*
* <td>ID</td>*
* <td>Title</td>*
* <td>Description</td>*
* </tr>*
* </thead>*
* <tbody>*
* <tr *ngFor="#v of videos" (click)="onSelect(v)">*
* <td>{{ v.id }}</td>*
* <td>{{ v.title }}</td>*
* <td>{{ v.desc }}</td>*
* </tr>*
* </tbody>*
*</table>*
How would I go about showing the Video instead? and if there is more of the
actual code you need to see, it's not letting me upload the zip file but
I'll reply on here or try find a way to get the coding across to you.
Any help would be appreciated!
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.