Guest User

Untitled

a guest
Mar 6th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <ul> <!-- Each song on the album -->
  2. <li class="song-block"
  3. *ngFor='let song of songsToDisplay'
  4. (click)="getSong(song)"
  5. (mouseenter)="hoverStateIn()"
  6. (mouseleave)="hoverStateOut()">
  7. <div class="song-card"
  8. (click)="addPlay(song)">
  9. <p *ngIf="!song.isPlaying"
  10. class="song-number">{{song.tracknumber}}</p>
  11. <i *ngIf="song.isPlaying" class="fa fa-play"></i>
  12. <p class="song-name">{{song.name}}</p>
  13. <p class="song-length">{{song.length}}</p>
  14. <div class="thumbs"
  15. *ngIf="hover"> <!-- Thumbs section -->
  16. <i class="fa fa-thumbs-up"></i>
  17. <i class="fa fa-thumbs-down"></i>
  18. </div>.....
  19. </ul>
  20.  
  21. hover: boolean = false;
  22.  
  23. hoverStateIn(){
  24. this.hover = true
  25. }
  26.  
  27. hoverStateOut(){
  28. this.hover = false;
  29. }
Add Comment
Please, Sign In to add comment