Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

Commit affd849

Browse files
author
Leonardo Vilarinho
authored
Update README.md
1 parent 0e2880d commit affd849

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,13 @@ Finish, you can change current permission in any component using `change` method
160160
</button>
161161
```
162162

163+
You can also add a new permission during execution, taking the current one and concatenating it with the new one: `this.$acl.change(this.$acl.get.concat(['read', 'write']))`
164+
163165
In your component can add observer for current Rule:
164166
```javascript
165167
mounted () {
166168
this.$acl.onChange = newPermission => {
167169
console.log('Has changed to', newPermission)
168170
}
169171
}
170-
```
172+
```

0 commit comments

Comments
 (0)