[Vuejs]-Passing value between files in Vue without node/npm

0👍

Based on the example from the docs, you could define a component prop in comp-nav.vue:

<template>
  <div class="header-title">{{ title }}</div>
</template>

<script>
module.exports = {
  props: ['title']
}
</script>

Leave a comment