williamcruzme / vue-gates

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.

Home Page:https://williamcruzme.github.io/vue-gates/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

musiwei opened this issue · comments

E.g. in setup() function?

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

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

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

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

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?

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

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?

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.