-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
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
Pipes - Eva and Rebecca - VideoStore #23
base: master
Are you sure you want to change the base?
Conversation
…he search api call
Video Store ConsumerWhat We're Looking For
|
searchApi() { | ||
//this is an ugly way to reset the URL. See if we can fix it | ||
this.clearMessages('#search-error-message'); | ||
event.preventDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're trying to prevent the default browser behavior here by calling event.preventDefault()
, however the event
variable is not defined in this function. We need to add it as a parameter:
searchApi(event) {
// ...
event.preventDefault();
}
}, | ||
|
||
searchMovies() { | ||
event.preventDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly here, we need to define the function as searchMovies(event)
.
Video Store Consumer
Congratulations! You're submitting your assignment!
Comprehension Questions