Skip to content

Commit 44fee26

Browse files
committed
docs(menuClose): improve menuClose docs
1 parent 1c27df3 commit 44fee26

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

js/angular/directive/menuClose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @usage
1111
* Below is an example of a link within a side menu. Tapping this link would
12-
* automatically close the currently opened menu
12+
* automatically close the currently opened menu.
1313
*
1414
* ```html
1515
* <a menu-close href="#/home" class="item">Home</a>

js/angular/directive/sideMenus.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@ IonicModule
1212
* and/or right side menu to be toggled by dragging the main content area side
1313
* to side.
1414
*
15+
* To automatically close an opened menu you can add the {@link ionic.directive:menuClose}
16+
* attribute directive. Including the `menu-close` attribute is usually added to
17+
* links and buttons within `ion-side-menu` content, so that when the element is
18+
* clicked then the opened side menu will automatically close.
19+
*
1520
* ![Side Menu](http://ionicframework.com.s3.amazonaws.com/docs/controllers/sidemenu.gif)
1621
*
17-
* For more information on side menus, check out the documenation for
18-
* {@link ionic.directive:ionSideMenuContent} and
19-
* {@link ionic.directive:ionSideMenu}.
22+
* For more information on side menus, check out:
23+
*
24+
* - {@link ionic.directive:ionSideMenuContent}
25+
* - {@link ionic.directive:ionSideMenu}
26+
* - {@link ionic.directive:menuClose}
2027
*
2128
* @usage
2229
* To use side menus, add an `<ion-side-menus>` parent element,

0 commit comments

Comments
 (0)