Compare commits
2 commits
93b82aedba
...
4f505507be
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f505507be | |||
| e4267e4fe3 |
3 changed files with 7 additions and 3 deletions
|
|
@ -1,8 +1,9 @@
|
||||||
export interface Show {
|
export interface Show {
|
||||||
_id: string
|
_id: string
|
||||||
title: string
|
title: string
|
||||||
year: number
|
date: Date
|
||||||
seasons: number
|
seasons: number
|
||||||
|
episodes: number
|
||||||
description: string
|
description: string
|
||||||
genres: string[]
|
genres: string[]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<!-- <img src="">-->
|
<!-- <img src="">-->
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title">{{ show.title }}</h5>
|
<h5 class="card-title">{{ show.title }}</h5>
|
||||||
<p class="card-text">{{ show.year }}</p>
|
<p class="card-text">{{ show.date | date }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,13 @@ import {Toast} from '../../interfaces/toast';
|
||||||
import {ToastService} from '../../services/toast/toast.service';
|
import {ToastService} from '../../services/toast/toast.service';
|
||||||
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
|
import {NgbModal} from '@ng-bootstrap/ng-bootstrap';
|
||||||
import {CreateModalComponent} from '../../components/create-modal/create-modal/create-modal.component';
|
import {CreateModalComponent} from '../../components/create-modal/create-modal/create-modal.component';
|
||||||
|
import {DatePipe} from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-shows',
|
selector: 'app-shows',
|
||||||
imports: [],
|
imports: [
|
||||||
|
DatePipe
|
||||||
|
],
|
||||||
templateUrl: './shows.component.html',
|
templateUrl: './shows.component.html',
|
||||||
styleUrl: './shows.component.css'
|
styleUrl: './shows.component.css'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue