1.0.0 • Published 6 years ago
huper-simple-vue-auth v1.0.0
huper-simple-vue-auth
Simple Vue Auth Plugin
Instructions for use
- Install de package
npm install --save huper-simple-vue-auth
- Import to Vue component (ES6 style)
import Vue from 'vue'
import HuperSimpleVueAuth from 'huper-simple-vue-auth'
Vue.usr(HuperSimpleVueAuth)
...
<router-link v-if="$isAuth(['ADMIN', 'LOGGEDING'], userPermission)" ...></router-link> // userPermission is a role from user loggedIn
- Notes:
- If you using CommonJS change to require module import instead ES6 import.
- This plugin is very simple and not need options to use it!
1.0.0
6 years ago