| title | Using Ray with Vue.js |
|---|---|
| weight | 1 |
Vue.js is a progressive JavaScript framework for building user interfaces. Use Ray to help you debug when developing Vue.js applications and components.
<x-docs.github-repo repo="permafrost-dev/vue-ray" />
npm install vue-rayyarn add vue-rayimport { createApp } from 'vue';
import App from './App.vue';
import RayPlugin from 'vue-ray';
const app = createApp(App);
app.use(RayPlugin);
app.mount('#app');import Vue from 'vue';
import RayPlugin from 'vue-ray';
Vue.use(RayPlugin);Once the plugin is installed, you can access the helper function as this.$ray() from within your Vue components.
<script>
export default {
methods: {
sendToRay() {
this.$ray('Hello from Vue!');
}
}
}
</script>All JavaScript methods are available when using Vue.js.
Now that Ray is installed in your Vue.js project, see what you can use it for.