Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 380854f

Browse files
robdodsonIgorMinar
authored andcommitted
docs($cookies): add info about angular-cookies.js
per the [top comment here](http://docs.angularjs.org/api/ngCookies.$cookies#comment-912064775) updating documentation so it matches [$resource](http://docs.angularjs.org/api/ngResource.$resource) and instructs the user to include the `angular-cookies.js` and load `ngCookies`. Closes #3607
1 parent 680b817 commit 380854f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ngCookies/cookies.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ angular.module('ngCookies', ['ng']).
1818
* Only a simple Object is exposed and by adding or removing properties to/from
1919
* this object, new cookies are created/deleted at the end of current $eval.
2020
*
21+
* # Installation
22+
* To use $cookies make sure you have included the `angular-cookies.js` that comes in Angular
23+
* package. You can also find this file on Google CDN, bower as well as at
24+
* {@link http://code.angularjs.org/ code.angularjs.org}.
25+
*
26+
* Finally load the module in your application:
27+
*
28+
* angular.module('app', ['ngCookies']);
29+
*
30+
* and you are ready to get started!
31+
*
2132
* @example
2233
<doc:example>
2334
<doc:source>

0 commit comments

Comments
 (0)