alfresco-ng2-components/docs/core/logout.directive.md
2018-10-23 15:05:38 +01:00

27 lines
477 B
Markdown

---
Added: v2.0.0
Status: Active
---
# Logout directive
Logs the user out when the decorated element is clicked.
## Basic Usage
```html
<button adf-logout>Logout</button>
```
### Properties
| Name | Type | Default value | Description |
| -- | -- | -- | -- |
| redirectUri | `string` | 'login' | Uri to be redirect after the logout |
| enableRedirect | `boolean` | 'true' | enable/disable redirect after logout |
## See also
- [Login component](login.component.md)