New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vuejs-components

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuejs-components

VueJS Components Snippets for Atom

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

vuejs-snippets

VueJS Components Snippets for Atom

Types

  • .text.html.vue

Snippets

Vue Component

prefix: component

body:

<template>
  //You component contents goes here, only html.
</template>

<script>

export default {
  name: "ComponentName",
  data(){
    return {
      //Component Data
      example: true,
      foo: "bar"
    }
  },

  created(){
    //On Component created
  },

  methods: {
    functionExample(){
      //Basic Component method
    }
  }
}
</script>

Vue Modal Component

prefix: modal

body:

<template>
  <modal :show.sync="showModal">
    <h2 slot="header">{{$t("change_password.title")}}</h2>
    <div slot="body">
      //You component contents goes here, only html.
    </div>
    <div slot="footer" class="text-center">
    </div>
  </modal>
</template>

<script>
import Modal from './interface/Modal.vue'

export default {
  name: "ComponentName",
  components: { Modal },
  data(){
    return {
      //Component Data
      showModal: false,
    }
  },

  created(){
    //On Component created
    this.showModal = true;
  },

  methods: {
    functionExample(){
      //Basic Component method
    }
  }
}
</script>

FAQs

Package last updated on 18 Aug 2016

Did you know?

Socket

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