30 lines
799 B
Plaintext
30 lines
799 B
Plaintext
|
<movie>
|
||
|
<a href="TODO">{props.movie.title}</a>
|
||
|
<img src='https://image.tmdb.org/t/p/w300{props.movie.poster_path}'></img>
|
||
|
<label>{props.movie.vote_average}/10</label>
|
||
|
<label>{props.movie.vote_count} votes</label>
|
||
|
<li each={ genre in props.movie.genres_id }>{genre}</li>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
export default {
|
||
|
onBeforeMount(props, state) {
|
||
|
console.log(props)
|
||
|
},
|
||
|
|
||
|
edit(e) {
|
||
|
// update only the text state
|
||
|
this.update({
|
||
|
items : [{results: getPopularMovies()}]
|
||
|
//getTopRatedMovies().then(data => items : data);
|
||
|
})
|
||
|
},
|
||
|
|
||
|
test(item) {
|
||
|
items : [{results: getPopularMovies()}]
|
||
|
console.log(item)
|
||
|
this.update();
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</movie>
|