EVOLUTION-MANAGER
Edit File: $cookies.html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/ngCookies/cookies.js?message=docs($cookies)%3A%20describe%20your%20change...#L21' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.3.9/src/ngCookies/cookies.js#L21' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in"> </i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">$cookies</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> - service in module <a href="api/ngCookies">ngCookies</a> </li> </ol> </header> <div class="api-profile-description"> <p>Provides read/write access to browser's cookies.</p> <p>Only a simple Object is exposed and by adding or removing properties to/from this object, new cookies are created/deleted at the end of current $eval. The object's properties can only be strings.</p> <p>Requires the <a href="api/ngCookies"><code>ngCookies</code></a> module to be installed.</p> </div> <div> <h2 id="example">Example</h2><pre><code class="lang-js">angular.module('cookiesExample', ['ngCookies']) .controller('ExampleController', ['$cookies', function($cookies) { // Retrieving a cookie var favoriteCookie = $cookies.myFavorite; // Setting a cookie $cookies.myFavorite = 'oatmeal'; }]); </code></pre> </div>