# 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](https://ngxf.gitbook.io/platform/server-interaction/cookies)
