Skip to content

Commit

Permalink
docs(ngOpen): improve example, correct browser compat note
Browse files Browse the repository at this point in the history
Firefox supports details since version 49
  • Loading branch information
Narretz committed Jul 4, 2017
1 parent 1991e77 commit 122d89b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/ng/directive/attrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,20 @@
*
* ## A note about browser compatibility
*
* Edge, Firefox, and Internet Explorer do not support the `details` element, it is
* Internet Explorer and Edge do not support the `details` element, it is
* recommended to use {@link ng.ngShow} and {@link ng.ngHide} instead.
*
* @example
<example name="ng-open">
<file name="index.html">
<label>Check me check multiple: <input type="checkbox" ng-model="open"></label><br/>
<label>Toggle details: <input type="checkbox" ng-model="open"></label><br/>
<details id="details" ng-open="open">
<summary>Show/Hide me</summary>
<summary>List</summary>
<ul>
<li>Apple</li>
<li>Orange</li>
<li>Durian</li>
</ul>
</details>
</file>
<file name="protractor.js" type="protractor">
Expand Down

0 comments on commit 122d89b

Please sign in to comment.