Socket
Socket
Sign inDemoInstall

vue

Package Overview
Dependencies
0
Maintainers
1
Versions
499
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue

Simple, Fast & Composable MVVM for building interative interfaces


Version published
Maintainers
1
Install size
247 kB
Created

Package description

What is vue?

Vue.js is a progressive JavaScript framework used for building user interfaces and single-page applications. It is designed to be incrementally adoptable, meaning that it can be used for more than just the interface layer of an application. Vue is also perfectly capable of powering sophisticated Single-Page Applications when used in combination with modern tooling and supporting libraries.

What are vue's main functionalities?

Reactive Data Binding

Vue.js offers a reactive and composable data binding system. When the state of the application changes, the view automatically updates to reflect the new state.

{"html": "<div id='app'>{{ message }}</div>", "javascript": "var app = new Vue({ el: '#app', data: { message: 'Hello Vue!' } })"}

Components

Vue allows developers to build encapsulated and reusable components, which can have their own state and methods. These components can be composed to build complex user interfaces.

{"javascript": "Vue.component('todo-item', { props: ['todo'], template: '<li>{{ todo.text }}</li>' })"}

Directives

Vue provides a set of built-in directives such as v-if, v-for, v-bind, and v-on, which offer functionality to HTML templates, allowing for declarative rendering and handling of user interactions.

{"html": "<p v-if='seen'>Now you see me</p>", "javascript": "new Vue({ el: '#app', data: { seen: true } })"}

Transition Effects

Vue has a transition system that can apply automatic transition effects when elements are inserted, updated, or removed from the DOM. This feature allows for adding interactive and engaging animations to the UI.

{"html": "<transition name='fade'><p v-if='show'>Hello Vue!</p></transition>", "javascript": "new Vue({ el: '#app', data: { show: true } })"}

Vuex for State Management

For larger applications, Vue can be used with Vuex, a state management pattern and library that helps manage state outside of Vue components for more complex applications.

{"javascript": "const store = new Vuex.Store({ state: { count: 0 }, mutations: { increment: state => state.count++ } })"}

Vue Router for Single Page Applications

Vue Router is the official router for Vue.js, which makes it easy to build single-page applications with Vue by allowing different views to be mapped to different paths.

{"javascript": "const router = new VueRouter({ routes: [{ path: '/foo', component: Foo }, { path: '/bar', component: Bar }] })"}

Other packages similar to vue

Readme

Source

Vue.js Build Status Selenium Test Status Coverage Status

MVVM made simple.

Introduction

Vue.js is a library for building interactive web interfaces. It provides the benefits of MVVM data binding and a composable component system with a simple and flexible API. You should try it out if you like:

  • Intuitive API that simply makes sense
  • Extendable Data bindings
  • Plain JavaScript objects as models
  • Building interface by composing reusable components
  • Flexibility to mix & match small libraries for a custom front-end stack

It's really really easy to get started. Seriously, it's so easy:

<div id="demo">
    {{message}}
    <input v-model="message">
</div>
var demo = new Vue({
    el: '#demo',
    data: {
        message: 'Hello Vue.js!'
    }
})

To check out the live demo, guides and API reference, visit vuejs.org.

Browser Support

Vue.js supports most ECMAScript 5 compliant browsers, essentially IE9+. IE8 and below are not supported.

Contribution

Read the contributing guide.

Get in Touch

Changelog

See details changes for each version in the release notes.

License

MIT

Copyright (c) 2014 Evan You

Keywords

FAQs

Last updated on 25 Feb 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc