Q71. How do you use v-for directive on template?
Just similar to v-if directive on template, you can also use a `` tag with v-for directive to render a block of multiple elements. Let's take a todo example, ```javascrip...
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 (104 available).
Just similar to v-if directive on template, you can also use a `` tag with v-for directive to render a block of multiple elements. Let's take a todo example, ```javascrip...
The v-model directive on a component uses **value** as the prop and **input** as the event, but some input types such as `checkboxes` and `radio buttons` may need to use ...
Sets and dictionaries support it. However tuples are immutable and have generators but not comprehensions. Set Comprehension: r={xforxinrange(2,101) ifnotany(x%y==0foryin...
Custom Directives are tiny commands that you can attach to DOM elements. They are prefixed with v- to let the library know you're using a special bit of markup and to kee...
You can also register directives locally(apart from globally) using directives option in component as below, ```javascript directives: { focus: { // directive definition ...
A directive object can provide several hook functions, 1. bind: This occurs once the directive is attached to the element. 2. inserted: This hook occurs once the element ...
All the hooks have `el`, `binding`, and `vnode` as arguments. Along with that, **update** and **componentUpdated** hooks expose `oldVnode`, to differentiate between the o...
A directive can take any valid javascript expression. So if you want to pass multiple values then you can pass in a JavaScript object literal. Let's pass object literal t...
In few cases, you may want the same behavior on `bind` and `update` hooks irrespective of other hooks. In this situation you can use function shorthand, ```javascript Vue...
Yes, Python supports multithreading via the standard library `threading` module. However, due to CPython's **Global Interpreter Lock (GIL)**, only one native thread execu...
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.