{"repo":"stevermeister/ngx-cookie-service","free":true,"listed":false,"github":"https://github.com/stevermeister/ngx-cookie-service","clone":"git clone https://github.com/stevermeister/ngx-cookie-service.git","description":"Angular (4.2+ ...12) service for cookies. Originally based on the `ng2-cookies` library.","language":"TypeScript","stars":561,"topics":["typescript","angular","angular2","aot","ngx","cookie","cookies","cookie-service","angular-service","ng"],"license":"MIT","category":"ui-components","readme_excerpt":"NGX Cookie Service Angular service to read, set and delete browser cookies. Originally based on the ng2-cookies library. This service is lightweight, and its bundle size is 1.3 Kb to ensure fast loading times and optimal performance. Installation Demo Cooke Service Demo: https://stackblitz.com/ /github.com/pavankjadda/ngx-cookie-service-demo SSR Cookie Service Demo: https://ngx-cookie-service-ssr-demo.netlify.app/ Usage 1. In standalone components, import the CookieService directly into the component 2. You can also use inject() method in v14+ to inject the service into the component Server Side Rendering Ngx Cookie Service supports Server Side Rendering (SSR) via dedicated library ngx-cookie-service-ssr. Only install ngx-cookie-service-ssr library (and skip ngx-cookie-service ) for SSR 1. Install the library using below command 2. By default, browser cookies are not available in SSR because document object is not available. To overcome this, navigate to server.ts file in your SSR project, and replace the following code with this 3. This will make sure the cookies are available in REQUEST object, and the ngx-cookie-service-ssr can use REQUEST.cookies to access the cookies in SSR. Then proceed to use ngx-cookie-service as usual. 4. See the sample repo for more details. Supported Versions We follow angular LTS versions. The latest version of the library supports Angular 19.x.x. Angular 14.x.x or below is not supported. Angular Version Supported Version ------------------------ ","default_branch":null,"files":null,"tree":[],"storefront":"/r/stevermeister","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stevermeister/ngx-cookie-service/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}