// Generated by Vue on Rails gem ~> github.com/ytbryan/vueonrails // To generate component part like this, please run `rails generate vue something` // To display this Vue component, add `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