samturrell / vue-match-heights

Vue plugin to match the height of elements
MIT License
55 stars 12 forks source link

how to use this module in nuxt.js? #7

Open Tokyodays opened 5 years ago

Tokyodays commented 5 years ago

hi. how to use this module in nuxt.js?

thelucre commented 5 years ago

Create a plugin in ~/plugins/vue-match-heights.js that adds the directive to Vue. Then register the script in your nuxt.config.js file like

{
...
  plugins: [
    { src: '~/plugins/vue-match-heights', ssr: false } , 
  ],
...
}