vue-kindergarten
vue-kindergarten copied to clipboard
Disable Perimeter Injection
Hi, Thank you for this library. How can I disable automatic inject of perimeter to vue instance?
example:
import backyard from './perimeters/backyard.js'
export default {
computed: {
...mapState([
'articles'
])
},
// add your perimeters
perimeters: [
backyard
]
}
it is nice I can access this.$backyard.isAllowed('pick', 'plant')
but I dont want to overwrite existing plugins that uses the same name ($backyard) and this.$sandbox.backyard.isAllowed('pick', 'plant')
instead. How can is do it?