Lightweight directive and instance method in vuejs for feature toggling based on configuration keys in your feature.config.js
file.
export default {
'specific-feature-toggle': {
status: true
}
}
import vueFeature from 'vue-feature'
import config from '../path-to-config/feature.config'
Vue.use(vueFeature,config)
<div v-feature:specific-feature-toggle>
</div>
mounted(){
this.$feature('specific-feature-toggle') ? this.dothis() : this.doThat()
}