Quiz: Handling User Input
Please enjoy this self-check quiz to help you identify key concepts, points, and techniques discussed in this section.
What is the action property of a form provide?
action property refers to the URL where the form should be submitted (and browser redirected).What methods can be used to submit a form online?
post and get methods are used to submit forms online.Which directive do we use to connect an input field and a value in the component's data?
v-bindv-modelv-ifv-onv-model directive is used to bind an input field and the value in the component's data.Which of the following modifiers are provided to help handle data in form fields?
.active.lazy.number.trim.lazy, .number, and .trim modifiers are provided to help handle data in form fields.What should we always include in at the beginning of set of elements in a tag?
element insures data will be bound and synced properly.Which directive defines an event listener in Vue.js templates?
v-ifv-forv-onv-modelv-on directive is used to define an event listener in a Vue.js template.What events can be listened for in a Vue.js application?
click and submitv-on directive can listen for any event emitted by an HTML element or custom events created by developers.What do we often use to handle an event in our Vue.js components?
Which directives are useful for controlling which handlers execute when an event is triggered?
.stop.go.prevent.once.stop, .prevent and .once directives can be used to control which handlers execute when an event is triggered.What do the modifiers .enter, .ctrl, and .tab do?
Which keyboard event would we use if we wanted to make a "new file" keyboard shortcut?
keydownkeypresskeyupkeypress event would be best for making a keyboard shortcut.Which keyboard event would we use if we were adding hotkeys to an app?
keydownkeypresskeyupkeyup event would be best for adding hotkeys to an app.Which keyboard event would we use if we were building a virtual game direction pad?
keydownkeypresskeyupkeydown event would be best for making a responsive virtual game direction pad.Visit Quiz Online
The quiz on this page has been removed from your PDF or ebook format. You may take the quiz by visiting this book online.