Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pavankjadda authored Jan 23, 2024
1 parent c6b0dd6 commit a4f8de1
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,31 +75,6 @@ https://stackblitz.com/~/github.com/pavankjadda/ngx-cookie-service-demo
}
}
```
### Angular 13 or below
Add the cookie service to your `app.module.ts` as a provider:

```typescript
import {CookieService} from 'ngx-cookie-service';

@NgModule({
...
providers:[CookieService],
...
})

export class AppModule {
}
```

Then, import and inject it into a constructor:

```typescript
constructor(private cookieService: CookieService)
{
this.cookieService.set('token', 'Hello World');
console.log(this.cookieService.get('token'));
}
```

## Server Side Rendering

Expand Down

0 comments on commit a4f8de1

Please sign in to comment.