JVFabia

playlist.component.html

Aug 17th, 2020
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.53 KB | None | 0 0
  1.  
  2. <h1>Playlist?</h1>
  3.  
  4. <p> ingrese la cancion...</p>
  5.  
  6. <input type="text" [(ngModel)]="nombre">
  7. <input type="text" [(ngModel)]="album">
  8. <input type="text" [(ngModel)]="autor">
  9.  
  10. <button (click)="agregarCancion();">agregar</button>
  11.  
  12. <ul>
  13.   <li *ngFor="let cancion of canciones">
  14.     {{cancion.album}} {{cancion.nombre}} {{cancion.autor}}
  15.   </li>
  16.  </ul>
  17.  
  18. <table>
  19.     <tr *ngFor="let cancion of canciones">
  20.       <td>{{cancion.nombre}}</td>
  21.       <td>{{cancion.album}}</td>
  22.       <td>{{cancion.autor}}</td>
  23.     </tr>
  24. </table>
  25.  
Add Comment
Please, Sign In to add comment