// Generated by Vue on Rails http://github.com/vueonrails/vueonrails // Generate a component part like this by running command `rails generate vue something` // Display this Vue component by adding `require('./<%= name %>')` to app/javascript/packs/application.js export default { // props: {}, data: function() { return { message: "Hello <%= name %>!", items: [] }; }, watch: { onCreated: function(response) { this.items = response.data; } }, methods: { //uncomment the