title: How to use cookie in angular js file?
body: <p>I am trying to use cookie in angular.I already use session and local storage in javascript .could you you please tell how to to use cookies in angular I am getting "undefined" error while using angular .I learn tutorial 
  <a href="https://github.com/ivpusic/angular-cookie" rel="nofollow">https://github.com/ivpusic/angular-cookie</a></p>
  
  <p>here is my code 
  <a href="http://goo.gl/NTmqNA" rel="nofollow">http://goo.gl/NTmqNA</a></p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html ng-app&gt;
    &lt;head&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"&gt;&lt;/script&gt;
          &lt;script src="app.js"&gt;&lt;/script&gt;
          &lt;script src="cookies.js"&gt;&lt;/script&gt;
  
    &lt;/head&gt;
    &lt;body ng-app="app"&gt;
      &lt;div ng-controller="cont"&gt;
  
      &lt;/div&gt;
    &lt;/body&gt;
    &lt;script&gt;
       var app= angular.module('app',['ipCookie'])
       function cont($scope,ipCookie){
           ipCookie("test", "testvalue
           console.log(ipCookie("test"))
       }
    &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>