Conditional rendering in vue js

Conditional Rendering in Vue makes it easy to toggle the presence of any element in the DOM based on a certain condition. The directives v-if and v-else are used for this purpose. <template> <h1…

0 Comments

Events in vue js

Event handling in Vue is done with the v-on directive, so that we can make something happen when for example a button is clicked. Event handling is when HTML elements are…

0 Comments

Props in Vue Js

A. Create a file of name suppose ChildConmponent.vue  :- ChildComponent.vue <template> {{data}} {{name}} </template>   <script> export default { name: 'ChildComponent', props: { data: String, name: String } } </script>…

0 Comments

Create first template in vue js

A. Create a file of name suppose HeaderConmponent.vue inside components folder :- HeaderComponent.vue <template> Html part </template>   <script> export default { name: 'HeaderComponent' } </script>   <style scoped> css…

0 Comments

HTML5 – JS QR Code Scanner

<script src="https://unpkg.com/html5-qrcode"></script> <main> <div id="reader"></div> <div id="result"></div> </main> <script> const scanner = new Html5QrcodeScanner('reader', { qrbox: { width: 250, height: 250, }, fps: 20, }); scanner.render(success, err); function success(result){  …

0 Comments