Sha256: a550b880f947a7a1a8dd983eaeaf85b6fddeb2774578d963bae3a5c3d0a4a69f

Contents?: true

Size: 716 Bytes

Versions: 1

Compression:

Stored size: 716 Bytes

Contents

<!-- Generated by vuejs gem ~> github.com/ytbryan/vuejs -->

<template>
  <div id="app">
    <p>{{ message }}</p>
    <button @click="onClick">click this</button>
  </div>
</template>

<script>
export default {
  data: function () {
    return {
      message: "Hello <%= name %>!"
    }
  }, 
  watch: {
    onCreated: function(response){
      this.items = response.data
    }
  },
  methods: {
    onClick: function(response){
      alert("clicked")
      console.log("clicked")
    }
  }, 
  computed: {

  },
  // asyncComputed: {},
  // components: {},
  // mixins: [], 
  // props: {},
  // directives: {}, 
  // filters: {},
}
</script>

<style scoped>
p {
  font-size: 2em;
  text-align: center;
}
</style>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vuejs-1.1.0.beta3 lib/generators/generator_templates/sfc/single-file-component.vue