Skip to content
Snippets Groups Projects
Commit d7374178 authored by Bilel El Yaagoubi's avatar Bilel El Yaagoubi
Browse files

modifs

parent 4164aa56
No related branches found
No related tags found
1 merge request!8Movie page
<template>
<div class="home">
<h1>Bienvenue sur la page film</h1>
<img class="logo" alt="Vue logo" src="../assets/logo.png" />
<br />
<input type="text" v-model="moviename" placeholder="enter a movie name" />
<div class="film-name">Le film est : {{ moviename }}</div>
<li v-for="movie in movies" :key="movie.id">
<p class="movie-title">
{{ movie.title }}
{{ moviesInfos.title }}
</p>
<p>
<img
:src="'https://image.tmdb.org/t/p/original/' + movie.poster_path"
:src="'https://image.tmdb.org/t/p/original/' + moviesInfos.poster_path"
withd="100"
height="300"
/>
</p>
</li>
</div>
</template>
......@@ -37,9 +31,12 @@ export default {
try {
// Do something if call succeeded
const response = await axios.get(
backendURL + "/movie/id/" + this.movieId
backendURL + "/movies/movie/id/" + this.movieId
);
await (this.moviesInfos = response);
console.log("ok");
console.log(response.data);
await (this.moviesInfos = response.data);
console.log("yo");
console.log(this.moviesInfos);
} catch (error) {
// Do something if call failed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment