Skip to content

Commit 3db183b

Browse files
committed
Fix formatted table
1 parent 35312f5 commit 3db183b

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ node_modules
66
playwright-report
77
docs/public
88
docs/resources
9-
typedoc
9+
typedoc
10+
*.md

docs/content/docs/provider/cookieProvider.md

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,37 +18,34 @@ created, updated, or removed using the `$cookie` service.
1818

1919
#### $cookieProvider.defaults
2020

21-
The [defaults](../../../typedoc/classes/CookieProvider.html#defaults) property
22-
defines global cookie settings. These values are applied to the `$cookie`
23-
service at initialization, and every cookie created through `$cookie.put()` or
24-
`$cookie.putObject()` will automatically inherit these defaults, unless
25-
overridden per-cookie.
21+
The [defaults](../../../typedoc/classes/CookieProvider.html#defaults) property defines global cookie settings. These values are applied to the
22+
`$cookie` service at initialization, and every cookie created through `$cookie.put()` or `$cookie.putObject()` will automatically inherit these defaults,
23+
unless overridden per-cookie.
2624

2725
- **Type:** [CookieOptions](../../../typedoc/interfaces/CookieOptions.html)
2826
- **Default:** `{}`
29-
- | **Options:** | Property | Type | Description |
30-
| ------------ | -------- | ----------------------------------------------- | ----------- |
31-
| **path** | `string` | URL path the cookie belongs to. Defaults to the |
32-
33-
current path. Commonly set to `'/'` to make cookies accessible across the
34-
entire site. | | **domain** | `string` | The domain the cookie is visible to.
35-
Useful for subdomains (e.g., `.example.com`). | | **expires** | `Date` |
36-
Expiration date. If omitted, the cookie becomes a _session cookie_ (deleted on
37-
browser close). | | **secure** | `boolean` | If `true`, the cookie is only
38-
sent over HTTPS. | | **samesite** | `"Strict" \| "Lax" \| "None"` | Controls
39-
cross-site cookie behavior. Required when `secure: true` and cross-site use is
40-
intended. | | **httponly** | _Not supported._ | Browser JS cannot set
41-
`HttpOnly` cookies. This must be done on the server. |
27+
- **Options:**
28+
| Property | Type | Description |
29+
|--------------|------------------|----------------------------------------------------------------------------------------------------------------------------------------|
30+
| **path** | `string` | URL path the cookie belongs to. Defaults to the current path. Commonly set to `'/'` to make cookies accessible across the entire site. |
31+
| **domain** | `string` | The domain the cookie is visible to. Useful for subdomains (e.g., `.example.com`). |
32+
| **expires** | `Date` | Expiration date. If omitted, the cookie becomes a _session cookie_ (deleted on browser close). |
33+
| **secure** | `boolean` | If `true`, the cookie is only sent over HTTPS. |
34+
| **samesite** | `"Strict" \| "Lax" \| "None"` | Controls cross-site cookie behavior. Required when `secure: true` and cross-site use is intended. |
35+
| **httponly** | _Not supported._ | Browser JS cannot set `HttpOnly` cookies. This must be done on the server. |
36+
37+
<br />
4238

4339
- **Example:**
4440
```js
45-
angular.module('demo', []).config(($cookieProvider) => {
46-
$cookieProvider.defaults = {
47-
path: '/',
48-
secure: true,
49-
samesite: 'Lax',
50-
};
51-
});
41+
angular.module('demo', [])
42+
.config(($cookieProvider) => {
43+
$cookieProvider.defaults = {
44+
path: '/',
45+
secure: true,
46+
samesite: 'Lax'
47+
};
48+
});
5249
```
5350

5451
---

0 commit comments

Comments
 (0)