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

Unable to use $gates variable in Vue 3 Composition API? #54

Open
musiwei opened this issue Mar 22, 2022 · 8 comments
Open

Unable to use $gates variable in Vue 3 Composition API? #54

musiwei opened this issue Mar 22, 2022 · 8 comments

Comments

@musiwei
Copy link

musiwei commented Mar 22, 2022

E.g. in setup() function?

@mreduar
Copy link

mreduar commented Mar 28, 2022

Hi @musiwei! Were you able to find a solution with Vue 3?

@musiwei
Copy link
Author

musiwei commented Mar 28, 2022

@mreduar not yet. I was hoping the mighty Internet would solve this puzzle :(

@mreduar
Copy link

mreduar commented Mar 28, 2022

I am looking for other alternatives, this seems to be abandoned.

@thonymg
Copy link

thonymg commented Oct 18, 2022

Hi all,
vue-zo An alternative that can be used with composition-api and Pinia.

@mreduar
Copy link

mreduar commented Oct 18, 2022

Hi all, vue-zo An alternative that can be used with composition-api and Pinia.

Hello, it looks good. But it does not have any documentation. Do you have a basic guide on how to use it? Or is it used exactly like vue-gates?

@flashmatt
Copy link

Hi all, vue-zo An alternative that can be used with composition-api and Pinia.

Hello, it looks good. But it does not have any documentation. Do you have a basic guide on how to use it? Or is it used exactly like vue-gates?

Docs are there... https://github.com/thonymg/vue-zo/tree/master/docs

@musiwei
Copy link
Author

musiwei commented Feb 13, 2023

Hi all, vue-zo An alternative that can be used with composition-api and Pinia.

I might be lost but where do you find how to use $gates variable in composition-api?

@mreduar
Copy link

mreduar commented Feb 13, 2023

I might be lost but where do you find how to use $gates variable in composition-api?

I started using vue-zo and it no longer uses that variable, but a function that helps you to validate it on the script side with composition api.

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

4 participants