File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,17 @@ angular.module('ngCookies', ['ng']).
34
34
* The object may have following properties:
35
35
*
36
36
* - **path** - `{string}` - The cookie will be available only for this path and its
37
- * sub-paths. By default, this would be the URL that appears in your base tag.
37
+ * sub-paths. By default, this is the URL that appears in your `< base>` tag.
38
38
* - **domain** - `{string}` - The cookie will be available only for this domain and
39
- * its sub-domains. For obvious security reasons the user agent will not accept the
40
- * cookie if the current domain is not a sub domain or equals to the requested domain .
39
+ * its sub-domains. For security reasons the user agent will not accept the cookie
40
+ * if the current domain is not a sub-domain of this domain or equal to it .
41
41
* - **expires** - `{string|Date}` - String of the form "Wdy, DD Mon YYYY HH:MM:SS GMT"
42
42
* or a Date object indicating the exact date/time this cookie will expire.
43
- * - **secure** - `{boolean}` - The cookie will be available only in secured connection.
43
+ * - **secure** - `{boolean}` - If `true`, then the cookie will only be available through a
44
+ * secured connection.
44
45
*
45
- * Note: by default the address that appears in your `<base>` tag will be used as path.
46
- * This is important so that cookies will be visible for all routes in case html5mode is enabled
46
+ * Note: By default, the address that appears in your `<base>` tag will be used as the path.
47
+ * This is important so that cookies will be visible for all routes when html5mode is enabled.
47
48
*
48
49
**/
49
50
var defaults = this . defaults = { } ;
You can’t perform that action at this time.
0 commit comments