vue-kindergarten icon indicating copy to clipboard operation
vue-kindergarten copied to clipboard

Disable Perimeter Injection

Open jariesdev opened this issue 4 years ago • 0 comments

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?

jariesdev avatar Jul 16 '20 14:07 jariesdev