2 ms·
Did anybody solve reusing single file components in a page? I tried to reuse two components in a single page and I had to inline the contents to the page I want
by aitchnyu 8y ago
Did anybody solve reusing single file components in a page? I tried to reuse two components in a single page and I had to inline the contents to the page I wanted them. Is there a way I could import them?
```
Singe file component 1:
<template for component 1>
<script for component 1>
Single file component 2:
<template for component 2>
<script for component 2>
```
```
{% include singlefilecomponent1 %}
{% include singlefilecomponent2 %}
```