---
Title: Version List component
Added: v2.0.0
Status: Active
Last reviewed: 2019-01-16
---

# [Version List component](../../../lib/content-services/src/lib/version-manager/version-list.component.ts "Defined in version-list.component.ts")

Displays the version history of a node in a [Version Manager component](version-manager.component.md).

### Basic Usage

```html
<adf-version-list [node]="myNode"></adf-version-list>
```

## Class members

### Properties

| Name               | Type      | Default value | Description                                               |
|--------------------|-----------|---------------|-----------------------------------------------------------|
| allowDownload      | `boolean` | true          | Enable/disable downloading a version of the current node. |
| allowViewVersions  | `boolean` | true          | Enable/disable viewing a version of the current node.     |
| node               | `Node`    |               | The target node.                                          |
| showActions        | `boolean` | true          | Toggles showing/hiding of version actions                 |
| showComments       | `boolean` | true          | Toggles showing/hiding of comments                        |
| allowVersionDelete | `boolean` | true          | Enable/disable deletion of version                        |

### Events

| Name        | Type                                                                 | Description                        |
|-------------|----------------------------------------------------------------------|------------------------------------|
| deleted     | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<Node>`   | Emitted when a version is deleted  |
| restored    | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<Node>`   | Emitted when a version is restored |
| viewVersion | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<string>` | Emitted when viewing a version     |

## Details

This component is used by the [Version Manager component](version-manager.component.md) to
load and displays the version history of a node.

If you want show readonly version list you set this component with showActions false:

```html
<adf-version-list [node]="myNode" [showActions]="false" ></adf-version-list>
```

## See also

-   [Version manager component](version-manager.component.md)
-   [New Version Uploader service](../services/new-version-uploader.dialog.service.md)
-   [New Version Uploader component](new-version-uploader.dialog.md)