Q31. What are key modifiers?
Vue supports key modifiers on `v-on` for handling keyboard events. Let's take an example of keyup event with enter keycode. ```html ``` Remembering all the key codes is r...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (251 available).
Vue supports key modifiers on `v-on` for handling keyboard events. Let's take an example of keyup event with enter keycode. ```html ``` Remembering all the key codes is r...
You can define custom key modifier aliases via the global `config.keyCodes`. There are few guidelines for the properties 1. You can't use camelCase. Instead you can use k...
Vue supports below modifiers to trigger mouse or keyboard event listeners when the corresponding key is pressed, 1. .ctrl 2. .alt 3. .shift 4. .meta Lets take an example ...
Vue supports below mouse button modifiers 1. .left 2. .right 3. .middle For example, the usage of `.right` modifier as below ```vue ``` ****
You can use the `v-model` directive to create two-way data bindings on form input, textarea, and select elements. Lets take an example of it using input component, ```vue...
There are three modifiers supported for v-model directive. **1. lazy:** By default, v-model syncs the input with the data after each input event. You can add the lazy mod...
Components are reusable Vue instances with a name. They accept the same options as new Vue, such as data, computed, watch, methods, and lifecycle hooks(except few root-sp...
Props are custom attributes you can register on a component. When a value is passed to a prop attribute, it becomes a property on that component instance. You can pass th...
In VueJS 2.x, every component must have a single root element **when template has more than one element**. In this case, you need to wrap the elements with a parent eleme...
If you want child wants to communicate back up to the parent, then emit an event from child using `$emit` object to parent, ```javascript Vue.component('todo-item', { pro...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.