English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="https://cdn.staticfile.org/angular.js/1.4.6/angular.min.js"></script> </head> <body ng-app=""> Click here to display the details list: <input type="checkbox" ng-model="showDetails"><br> <br> <details ng-open="showDetails"> <summary>Learn the basics to go further!</summary>/summary> <p> - Basic Tutorial Website</p> </details> <p><b>Notice:</b>Currently, only Opera, Chrome, and Safari browsers support the details tag.</p> </body> </html>Test and see ‹/›
ng-open This directive is used to set the open property of the details list.
If ng-open If the expression returns true, the details list is visible.
<details ng-open="expression">.../details>
The <details> element supports this directive.
Value | Description |
---|---|
expression | If the expression is true, the open property of details will be set. |