Sha256: cb1f762560349e3612936aa28726338fa642f116b7a87811e4e19cc67d917768

Contents?: true

Size: 821 Bytes

Versions: 5

Compression:

Stored size: 821 Bytes

Contents

<!-- Generated by vuejs gem ~> github.com/ytbryan/vuejs -->
<!-- To generate another component part, Please run `rails generate vue something` -->

<template> 
  <div id="<%= name %>">
    <p>{{ message }}</p>
    <!-- <button @click="onClick">click this</button> -->
  </div>
</template>

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vuejs-1.1.0.beta8 lib/generators/generator_templates/sfc/single-file-component.vue
vuejs-1.1.0.beta7 lib/generators/generator_templates/sfc/single-file-component.vue
vuejs-1.1.0.beta6 lib/generators/generator_templates/sfc/single-file-component.vue
vuejs-1.1.0.beta5 lib/generators/generator_templates/sfc/single-file-component.vue
vuejs-1.1.0.beta4 lib/generators/generator_templates/sfc/single-file-component.vue