Giter Club home page Giter Club logo

beginner.vue.js's Introduction

Beginner.vue.js

  1. Vue Instance

  2. Vue Attribute Binding It dynamically binds an attribute into expressions v-bind:src= {{ expressions }}

    • Data can be bound to HTML attributes.
    • Syntax is v-bind: or : for short.
    • The attribute name that comes after the : specifies the attribute we’re binding data to.
    • Inside the attribute’s quotes, we reference the data we’re binding to.
  3. Conditional Rendering There are Vue directives to conditionally render elements: v-if v-else-if v-else v-show If whatever is inside the directive’s quotes is truthy, the element will display. You can use expressions inside the directive’s quotes. V-show only toggles visibility, it does not insert or remove the element from the DOM.

  4. Classes and Style Binding Data can be bound to an element’s style attribute Data can be bound to an element’s class We can use expressions inside an element’s class binding to evaluate whether a class should appear or not You can bind an entire class object or array of classes to an element

  5. Computed Property These are properties on the Vue instance that calculate a value rather than store a value. Computed properties can use data from your app to calculate its values. it is like using calculator we get computed value 2+3 =5 , so Binjita + Baral = Binjita baral

  6. Forms and v-model binding We can use the v-model directive to create two-way binding on form elements We can use the .number modifier to tell Vue to cast that value as a number, but there is a bug with it We can use the .prevent event modifier to stop the page from reloading when the form is submitted We can use Vue to do fairly simple custom form validation

  7. Tabs

beginner.vue.js's People

Contributors

bkandelbaral20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.