NGXF
  • 🚀Introduction
  • Get Started
    • Why
    • Installation
  • Concepts
    • Introduction
  • Features
    • Activated Route
    • Call
    • Init
    • Lazy
    • Keep Alive
    • Timeout
    • Track By Key
    • Repeat
    • Virtual Scroll
  • Server Interaction
    • Async
    • Cookies
    • Http
    • Socket.IO
  • Hooks
    • State Hook
    • Effect Hook
    • Reducer Hook
  • Recompose
    • Compose
  • API
    • NgxfModule
    • HttpDirective
    • RouteDirective
    • InitDirective
    • ComposeDirective
    • ReturnDirective
    • TimeoutDirective
    • CookiesDirective
    • AsyncDirective
    • LazyDirective
    • CallPipe
  • Recipes
    • Caching
    • Style Guide
  • Community
    • FAQ
    • Contributing
Powered by GitBook
On this page
  • Selectors
  • Properties
  • Example
  1. API

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>
PreviousTimeoutDirectiveNextAsyncDirective

Last updated 6 years ago

See more