21 lines
635 B
Plaintext
21 lines
635 B
Plaintext
<film>
|
|
<div each="{movie in this.props.movies}">
|
|
<h1>{movie.title}</h1>
|
|
<img src="https://www.themoviedb.org/t/p/w600_and_h900_bestv2{movie.poster_path}" if="{this.getPoster(movie.poster_path)}">
|
|
<h4>Popularité : {movie.popularity}</h4>
|
|
<h3>{movie.vote_average}/10 sur {movie.vote_count} avis.</h3>
|
|
<h2>Genre(s) : {movie.genre_ids}</h2>
|
|
</div>
|
|
|
|
<script>
|
|
export default {
|
|
getPoster(path){
|
|
if(path == null){
|
|
return false;
|
|
} else {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</film> |