From a4f8de185f51325f8e79ed15da6eb0e2ac109b67 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Jadda <17564080+pavankjadda@users.noreply.github.com> Date: Tue, 23 Jan 2024 18:40:31 -0500 Subject: [PATCH] Update README.md --- README.md | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/README.md b/README.md index 890e1fd..5910fca 100644 --- a/README.md +++ b/README.md @@ -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