https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30225

--- Comment #5 from David Cook <[email protected]> ---
I'm looking forward to looking at this more (at some point).

I must've been using Vue 2 back in August 2020, but I did some very basic
things similar to this:

<script src="https://npmcdn.com/vue/dist/vue.js";></script>

    <div id="app">
      <p>{{ message }}</p>
      <button v-on:click="reverseMessage">Reverse Message</button>
    </div>
[% MACRO jsinclude BLOCK %]
<script>
    new Vue({
      el: '#app',
      data: {
        message: 'Hello Vue.js!'
      },
      methods: {
        reverseMessage: function () {
          this.message = this.message.split('').reverse().join('')
        }
      }
    })
</script>
[% END %]

--

I didn't go very far with Vue.js as I had other priorities, but it seemed easy
to integrate with a legacy app. I imagine I was greatly under utilizing its
power with this helloworld, but I liked how it didn't require anything
complicated to use it.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to