CookiesDirective

Selectors

[cookies]

Properties

Property

Description

@Input()

cookiesGet: string

@Input()

cookiesSet: string

@Input()

cookiesRemove: string

@Input()

cookiesValue: any

@Input()

cookiesPath: string

@Input()

cookiesDomain: string

@Input()

cookiesExpires: string | Date

@Input()

cookiesSecure: boolean

Example

<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

Last updated