title: AngularJS, how to get domain from a cookie
body: <p>I'm trying to remove cookies from my browser when logging out, but I can't do that without specifying the domain when removing.</p>
  
  <pre><code>$cookies.remove('Name',{domain:'.test123.com'});
  </code></pre>
  
  <p>I want to automate the process by getting all the cookies and removing them, since the domain of each cookie changes we need to specify the domain when removing. But i don't see any way how to get the domain.</p>
  
  <pre><code> angular.forEach(cookies, function (v, k) {
      $cookies.remove(k);
  });
  </code></pre>
  
  <p>Since, I'm not setting the domain and the cookies take the domain automatically, How do i get the domain for each cookie.</p>