cinema/movie.riot

30 lines
799 B
Plaintext
Raw Normal View History

2022-04-02 12:00:24 +02:00
<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>