Skip to content

Commit

Permalink
fix(format): fixes format issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda committed Aug 20, 2023
1 parent fa9501e commit cc5a685
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/ngx-cookie-service-ssr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -79,6 +80,7 @@ That's it!
}
}
```

2. You can also use `inject()` method in v14+ to inject the service into the component

```typescript
Expand Down Expand Up @@ -107,13 +109,15 @@ 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
# or
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
Expand Down
4 changes: 4 additions & 0 deletions projects/ngx-cookie-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -79,6 +80,7 @@ That's it!
}
}
```

2. You can also use `inject()` method in v14+ to inject the service into the component

```typescript
Expand Down Expand Up @@ -107,13 +109,15 @@ 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
# or
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
Expand Down

0 comments on commit cc5a685

Please sign in to comment.