Add Button in child (card) Add my schedules Add scheduler module Plus clean up architecture and code
13 lines
438 B
HTML
13 lines
438 B
HTML
<h1> List of Activities</h1>
|
|
<div *ngFor="let activity of activities">
|
|
<h3>{{activity.data.name}}</h3>
|
|
<ul>
|
|
<li>Country: {{activity.data.country}}</li>
|
|
<li>City: {{activity.data.city}}</li>
|
|
<li>Description: {{activity.data.description}}</li>
|
|
<li>Duration: {{activity.data.duration}} minutes</li>
|
|
<li>Id: {{activity.id}}</li>
|
|
<button (click)="addActivitiesIntoSchedule(activity.id)">Add</button>
|
|
</ul>
|
|
</div>
|