We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I dont see any console error but the images of the ng-src are not displaying.
The text was updated successfully, but these errors were encountered:
This is because of incorrect reference to image details. You would observe that relax exercise images shows up but no image for exercises.
In workout.js, rename details to exercise restExercise = { details: new Exercise({ name: "rest", title: " Relax!", description: " Relax a bit!", image: "img/rest.png", }), duration: workoutPlan.restBetweenExercise };
restExercise = { details: new Exercise({ name: "rest", title: " Relax!", description: " Relax a bit!", image: "img/rest.png", }), duration: workoutPlan.restBetweenExercise };
Correct code restExercise = { exercise: new Exercise({ name: "rest", title: " Relax!", description: " Relax a bit!", image: "img/rest.png", }), duration: workoutPlan.restBetweenExercise };
restExercise = { exercise: new Exercise({ name: "rest", title: " Relax!", description: " Relax a bit!", image: "img/rest.png", }), duration: workoutPlan.restBetweenExercise };
And in index.html, instead of using <h1>{{currentExercise.details.title}}</h1> use <h1>{{currentExercise.exercise.title}}</h1>
<h1>{{currentExercise.details.title}}</h1>
<h1>{{currentExercise.exercise.title}}</h1>
and
change ng-src="{{currentExercise.details.image}}" /> to ng-src="{{currentExercise.exercise.image}}" />
ng-src="{{currentExercise.details.image}}" />
ng-src="{{currentExercise.exercise.image}}" />
Sorry, something went wrong.
No branches or pull requests
I dont see any console error but the images of the ng-src are not displaying.
The text was updated successfully, but these errors were encountered: