[Koha-bugs] [Bug 30225] Rewrite cities admin view in Vue

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 7 23:38:46 CET 2022


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

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
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.


More information about the Koha-bugs mailing list