I have the following problem where I am trying to get cookies from my browser however I need to get them as they appear. Some of them don't appear instantly so I am trying to use the below code to get them as they come. The error I am seeing in my editor is:
Property 'subscribe' does not exist on type '{}'
import { CookieService } from 'ngx-cookie-service';
this._cookieService.getAll().subscribe((result) => {
console.log(result);
});
Can someone please assist