I'm trying to display on a table some tracks with spotify api, and it's not displaying anything. Here's the code
This is the tracksArray from the console.
(4) [{…}, {…}, {…}, {…}]
0: {uri: ""}
1: {uri: "spotify:track:4JhloJcv1weqqs8RfBLWk0"}
2: {uri: "spotify:track:7rHJr8x10nTZYR4j2VYlXu"}
3: {uri: "spotify:track:60SdxE8apGAxMiRrpbmLY0"}
length: 4
__proto__: Array(0)
Here's the html
@Component({
moduleId: module.id,
selector: 'app-favtracks',
template: `
<table class="table">
<thead>
<tr>
<th class="styled-tableheader">Vista Previa</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let track of tracksArray">
<td>
<iframe
[src]="track.uri | domsanitizer"
width="320"
height="90"
frameborder="0"
allowtransparency="true"
allow="encrypted-media"
></iframe>
</td>
</tr>
</tbody>
</table>
`,
styleUrls: ['./favtracks.component.scss'],
providers: [SpotifyService]
})