Comments (3)
Just use Vue.component(Title.name, Title)
from laravel-nuxt.
Thank you for your answer!
but will it work with multiple components?
//plugins/ml.js
import Vue from 'vue'
import Title from '/components/ml/title';/components/ml/title2';
import Title2 from '
const components = { Title, Title2 };
Object.entries(components).forEach(([name, component]) => {
Vue.component(name, component)
});
Thank you
from laravel-nuxt.
I added this
components: {
dirs: [
'/components/',/components/ml/',
{
path: '
prefix: 'ml'
}
]
},
in nuxt.config.js
and it worked. thank you!
from laravel-nuxt.
Related Issues (20)
- SSR and MustVerifyEmail issue
- "Generating optimized autoload files" step on project scaffolding fails with error
- unable to generate token using socialite login
- blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource HOT 2
- User data not saved by store.dispatch HOT 1
- "Make sure to run npm run build!" whenever I try to connect to the Laravel part.
- how to use with laravel vapor HOT 1
- High CPU usage when running `dev` command
- User info not showing up in settings HOT 1
- I cant use yarn. HOT 2
- _vm.form.errors.has is not a function HOT 1
- Can't access laravel on localhost HOT 4
- Login with name instead of email HOT 1
- Classic laravel page on subdomain HOT 4
- http://localhost:8000/oauth/github/callback => Make sure to run npm run build!
- Installation fail HOT 3
- Will there be a nuxt3 version coming? HOT 2
- Cannot get CORS to work in production HOT 1
- how to deploy to hosting HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-nuxt.