Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vu3 Composition api #768

Closed
hasanablak opened this issue Jul 31, 2024 · 1 comment
Closed

Vu3 Composition api #768

hasanablak opened this issue Jul 31, 2024 · 1 comment
Assignees

Comments

@hasanablak
Copy link
Contributor

Can we add any example inside to docs for usage when we use vue3 composition api?

I'am using like that;

import { useRoute } from 'ziggy-js';
import { Ziggy } from '../ziggy';

...

const route = useRoute(Ziggy);

...

async function abc(){
await axios.get(route('api.notification.count'))
}

@mhelaiwa
Copy link
Contributor

mhelaiwa commented Oct 20, 2024

You should use vue 3 inject. I've create a PR #785 to note that inside the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants