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

Commit 122d89b

Browse files
committed
docs(ngOpen): improve example, correct browser compat note
Firefox supports details since version 49
1 parent 1991e77 commit 122d89b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/ng/directive/attrs.js

+8-3
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,20 @@
317317
*
318318
* ## A note about browser compatibility
319319
*
320-
* Edge, Firefox, and Internet Explorer do not support the `details` element, it is
320+
* Internet Explorer and Edge do not support the `details` element, it is
321321
* recommended to use {@link ng.ngShow} and {@link ng.ngHide} instead.
322322
*
323323
* @example
324324
<example name="ng-open">
325325
<file name="index.html">
326-
<label>Check me check multiple: <input type="checkbox" ng-model="open"></label><br/>
326+
<label>Toggle details: <input type="checkbox" ng-model="open"></label><br/>
327327
<details id="details" ng-open="open">
328-
<summary>Show/Hide me</summary>
328+
<summary>List</summary>
329+
<ul>
330+
<li>Apple</li>
331+
<li>Orange</li>
332+
<li>Durian</li>
333+
</ul>
329334
</details>
330335
</file>
331336
<file name="protractor.js" type="protractor">

0 commit comments

Comments
 (0)