From cc5a68551eb56b94730d6cc8852760159b9415b9 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Jadda <17564080+pavankjadda@users.noreply.github.com> Date: Sun, 20 Aug 2023 01:25:45 -0400 Subject: [PATCH] fix(format): fixes format issue --- projects/ngx-cookie-service-ssr/README.md | 4 ++++ projects/ngx-cookie-service/README.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/projects/ngx-cookie-service-ssr/README.md b/projects/ngx-cookie-service-ssr/README.md index 8f4f655..7788274 100644 --- a/projects/ngx-cookie-service-ssr/README.md +++ b/projects/ngx-cookie-service-ssr/README.md @@ -63,6 +63,7 @@ That's it! 1. Angular 14 introduced support for standalone components. If you are using just standalone components, you can import the service directly into the component + ```typescript import { CookieService } from 'ngx-cookie-service'; import { Component } from '@angular/core'; @@ -79,6 +80,7 @@ That's it! } } ``` + 2. You can also use `inject()` method in v14+ to inject the service into the component ```typescript @@ -107,6 +109,7 @@ library [ngx-cookie-service-ssr](https://www.npmjs.com/package/ngx-cookie-servic Only install `ngx-cookie-service-ssr` library (and skip `ngx-cookie-service`) for SSR 1. Install the library using below command + ```shell npm install ngx-cookie-service-ssr --save @@ -114,6 +117,7 @@ Only install `ngx-cookie-service-ssr` library (and skip `ngx-cookie-service`) fo yarn add ngx-cookie-service-ssr ``` + 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 diff --git a/projects/ngx-cookie-service/README.md b/projects/ngx-cookie-service/README.md index 8f4f655..7788274 100644 --- a/projects/ngx-cookie-service/README.md +++ b/projects/ngx-cookie-service/README.md @@ -63,6 +63,7 @@ That's it! 1. Angular 14 introduced support for standalone components. If you are using just standalone components, you can import the service directly into the component + ```typescript import { CookieService } from 'ngx-cookie-service'; import { Component } from '@angular/core'; @@ -79,6 +80,7 @@ That's it! } } ``` + 2. You can also use `inject()` method in v14+ to inject the service into the component ```typescript @@ -107,6 +109,7 @@ library [ngx-cookie-service-ssr](https://www.npmjs.com/package/ngx-cookie-servic Only install `ngx-cookie-service-ssr` library (and skip `ngx-cookie-service`) for SSR 1. Install the library using below command + ```shell npm install ngx-cookie-service-ssr --save @@ -114,6 +117,7 @@ Only install `ngx-cookie-service-ssr` library (and skip `ngx-cookie-service`) fo yarn add ngx-cookie-service-ssr ``` + 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