> For the complete documentation index, see [llms.txt](https://ngxf.gitbook.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ngxf.gitbook.io/platform/api/cookiesdirective.md).

# CookiesDirective

## Selectors

```
[cookies]
```

## Properties

| Property                                                      | Description |   |
| ------------------------------------------------------------- | ----------- | - |
| <p>@Input()</p><p><strong>cookiesGet</strong>: string</p>     |             |   |
| <p>@Input()</p><p><strong>cookiesSet</strong>: string</p>     |             |   |
| <p>@Input()</p><p><strong>cookiesRemove</strong>: string</p>  |             |   |
| <p>@Input()</p><p><strong>cookiesValue</strong>: any</p>      |             |   |
| <p>@Input()</p><p><strong>cookiesPath</strong>: string</p>    |             |   |
| <p>@Input()</p><p><strong>cookiesDomain</strong>: string</p>  |             |   |
| <p>@Input()</p><p><strong>cookiesExpires</strong>: string     | Date</p>    |   |
| <p>@Input()</p><p><strong>cookiesSecure</strong>: boolean</p> |             |   |

## Example

```markup
<ng-container *cookies="let cookie set 'ngxf' value 'Best Of The Best' path '/' domain: 'localhost' expires '01 Oct 2020'">
    {{ cookie }}
</ng-container>

<ng-container *cookies="let cookie get 'ngxf'">
    {{ cookie }}
</ng-container>

<ng-container *cookies="let cookie remove 'ngxf' path '/' domain: 'localhost'">
    {{ cookie }}
</ng-container>
```

[See more](/platform/server-interaction/cookies.md)
