Answers for "angular 8 set cookie to string"

0

angular 8 set cookie to string

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

constructor( private cookieService: CookieService ) { }

ngOnInit(): void {
  this.cookieService.set( 'name', 'Test Cookie' ); // To Set Cookie
  this.cookieValue = this.cookieService.get('name'); // To Get Cookie
}
Posted by: Guest on November-25-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language