From 44fee2643635c8fa239cb6762788f146b7abcd87 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 6 Aug 2014 14:38:50 -0500 Subject: [PATCH] docs(menuClose): improve menuClose docs --- js/angular/directive/menuClose.js | 2 +- js/angular/directive/sideMenus.js | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/js/angular/directive/menuClose.js b/js/angular/directive/menuClose.js index 801ca34391..0d6c1ab39d 100644 --- a/js/angular/directive/menuClose.js +++ b/js/angular/directive/menuClose.js @@ -9,7 +9,7 @@ * * @usage * Below is an example of a link within a side menu. Tapping this link would - * automatically close the currently opened menu + * automatically close the currently opened menu. * * ```html * Home diff --git a/js/angular/directive/sideMenus.js b/js/angular/directive/sideMenus.js index ee59a53c6a..84579a7a99 100644 --- a/js/angular/directive/sideMenus.js +++ b/js/angular/directive/sideMenus.js @@ -12,11 +12,18 @@ IonicModule * and/or right side menu to be toggled by dragging the main content area side * to side. * + * To automatically close an opened menu you can add the {@link ionic.directive:menuClose} + * attribute directive. Including the `menu-close` attribute is usually added to + * links and buttons within `ion-side-menu` content, so that when the element is + * clicked then the opened side menu will automatically close. + * * ![Side Menu](http://ionicframework.com.s3.amazonaws.com/docs/controllers/sidemenu.gif) * - * For more information on side menus, check out the documenation for - * {@link ionic.directive:ionSideMenuContent} and - * {@link ionic.directive:ionSideMenu}. + * For more information on side menus, check out: + * + * - {@link ionic.directive:ionSideMenuContent} + * - {@link ionic.directive:ionSideMenu} + * - {@link ionic.directive:menuClose} * * @usage * To use side menus, add an `` parent element,