# Using .vue files

To use a .vue file from clear follow these steps:

* Copy the required .vue file from clear to "resources/assets/js/components" directory.
* Also copy the necessary css and js files to their respective folders.
* Then register the component in the "resources/assets/js/app.js" file.

eg:

```javascript
var app = new Vue({
    mixins: [require('spark')],
    components: {
        'invoice': require('./components/clear.vue')
    }
});
```

* Then use the component in any of the blade files by using the component tag

```php
<invoice></invoice>
```

**Note**:

* The links to the vendors css files and images should be adjusted to the new directory structure.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lorvent.gitbook.io/clear/laravel-spark-skin/using-vue-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
