12 lines
1.5 KiB
HTML
Executable file
12 lines
1.5 KiB
HTML
Executable file
<a href="http://github.com/angular/angular.js/tree/v1.2.0rc1/src/ngCookies/cookies.js#L3" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a><a href="http://github.com/angular/angular.js/edit/master/src/ngCookies/cookies.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable=""></code>
|
|
<div><span class="hint"></span>
|
|
</div>
|
|
</h1>
|
|
<div><div class="ngcookies-page"><h2>ngCookies</h1>
|
|
<p>Provides the <a href="api/ngCookies.$cookies"><code>$cookies</code></a> and
|
|
<a href="api/ngCookies.$cookieStore"><code>$cookieStore</code></a> services.</p>
|
|
<p><h1>Installation</h2><p>First include <code>angular-cookies.js</code> in your HTML:</p><pre><code> <script src="angular.js">
|
|
<script src="angular-cookies.js"></pre></code><p>You can also find this file on the <a href="https://developers.google.com/speed/libraries/devguide#angularjs">Google CDN</a>, <a href="http://bower.io/">Bower</a> (as <code>angular-cookies</code>), and on <a href="http://code.angularjs.org/">code.angularjs.org</a>.</p><p>Then load the module in your application by adding it as a dependant module:</p><pre><code> angular.module('app', ['ngCookies']);</pre></code><p>With that you're ready to get started!</p></p>
|
|
<p>See <a href="api/ngCookies.$cookies"><code>$cookies</code></a> and
|
|
<a href="api/ngCookies.$cookieStore"><code>$cookieStore</code></a> for usage.</p>
|
|
</div></div>
|