mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-4249] Updated review checker tool to work with new doc subfolders * [ADF-4249] Updates for doc review
30 lines
661 B
Markdown
30 lines
661 B
Markdown
---
|
|
Title: Logout directive
|
|
Added: v2.0.0
|
|
Status: Active
|
|
Last reviewed: 2019-03-20
|
|
---
|
|
|
|
# [Logout directive](../../../lib/core/directives/logout.directive.ts "Defined in logout.directive.ts")
|
|
|
|
Logs the user out when the decorated element is clicked.
|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<button adf-logout>Logout</button>
|
|
```
|
|
|
|
## Class members
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| enableRedirect | `boolean` | true | Enable redirecting after logout |
|
|
| redirectUri | `string` | "/login" | URI to redirect to after logging out. |
|
|
|
|
## See also
|
|
|
|
- [Login component](../components/login.component.md)
|