From 95906e921dd98ba0728d2dfb5462de70ba67576b Mon Sep 17 00:00:00 2001 From: Drew Rygh Date: Wed, 9 Dec 2015 11:40:24 -0600 Subject: [PATCH] docs(showHideWhen): update description and usage --- .../components/show-hide-when/show-hide-when.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ionic/components/show-hide-when/show-hide-when.ts b/ionic/components/show-hide-when/show-hide-when.ts index 22827aa989..7786e042fb 100644 --- a/ionic/components/show-hide-when/show-hide-when.ts +++ b/ionic/components/show-hide-when/show-hide-when.ts @@ -53,12 +53,14 @@ class DisplayWhen { /** * - * The `show-when` attribute takes a value or expression, and only shows the element it has been added to when - * the value or expression is true. Complements the [hide-when attribute](../HideWhen). + * The `show-when` attribute takes a string that represents a plaform or screen orientation. + * The element the attribute is added to will only be shown when that platform or screen orientation is active. + * Complements the [hide-when attribute](../HideWhen). * @usage * ```html - *
I am hidden!
+ *
I am only visible on iOS!
* ``` + * @demo /docs/v2/demos/show-when/ */ @Directive({ selector: '[show-when]', @@ -87,12 +89,14 @@ export class ShowWhen extends DisplayWhen { /** * - * The `hide-when` attribute takes a value or expression, and hides the element it has been added to when - * the value or expression is true. Complements the [show-when attribute](../ShowWhen). + * The `hide-when` attribute takes a string that represents a plaform or screen orientation. + * The element the attribute is added to will only be hidden when that platform or screen orientation is active. + * Complements the [show-when attribute](../ShowWhen). * @usage * ```html - *
I am hidden!
+ *
I am hidden on Android!
* ``` + * @demo /docs/v2/demos/hide-when/ */ @Directive({ selector: '[hide-when]',