inject instance of ability using casl library
With the latest version of casl that supports only vue 3, an instance can be created like this: import { ABILITY_TOKEN } from '@casl/vue'; export default { inject: { $ability: { from: ABILITY_TOKEN } } } https://www.npmjs.com/package/@casl/vue how can this be achieved with the previous version of casl plugin for vue?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.