SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/leads/show/main.js

Summary

Maintainability
A
35 mins
Test Coverage
import { createApp } from 'vue'
import App from './app.vue'

function initApp (element) {
  const app = createApp(App)

  app.mount(element)
}

document.addEventListener('turbolinks:load', () => {
  const el = document.querySelector('#show_task')

  if (el) { initApp(el) }
})