mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-2334] Added version and status metadata to doc files * [ADF-2334] Tidier looking metadata for guide pages
33 lines
638 B
Markdown
33 lines
638 B
Markdown
---
|
|
Added: v2.0.0
|
|
Status: Active
|
|
---
|
|
# Like component
|
|
|
|
Allows a user to add "likes" to an item.
|
|
|
|

|
|
|
|
## Basic Usage
|
|
|
|
```html
|
|
<adf-like [nodeId]="nodeId"></adf-like>
|
|
```
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Default value | Description |
|
|
| ---- | ---- | ------------- | ----------- |
|
|
| nodeId | `string` | | Identifier of a node to apply likes to. |
|
|
|
|
### Events
|
|
|
|
| Name | Type | Description |
|
|
| ---- | ---- | ----------- |
|
|
| changeVote | `EventEmitter<{}>` | Emitted when the "vote" gets changed. |
|
|
|
|
## See also
|
|
|
|
- [Rating component](rating.component.md)
|
|
- [Rating service](rating.service.md)
|