diff --git a/demos/hide-when/main.html b/demos/hide-when/main.html index 2beb4739eb..7706d43120 100644 --- a/demos/hide-when/main.html +++ b/demos/hide-when/main.html @@ -3,7 +3,7 @@ -

- (hide-when="android") This text is hidden on Android only. Click the Android tab to hide this text. +

+ (hideWhen="android") This text is hidden on Android only. Click the Android tab to hide this text.

diff --git a/demos/show-when/main.html b/demos/show-when/main.html index bacd10e446..f8d8d8e924 100644 --- a/demos/show-when/main.html +++ b/demos/show-when/main.html @@ -3,7 +3,7 @@ -

- (show-when="ios") This text is shown on iOS only. Click the Android tab to hide this text. +

+ (showWhen="ios") This text is shown on iOS only. Click the Android tab to hide this text.

diff --git a/ionic/components/show-hide-when/show-hide-when.ts b/ionic/components/show-hide-when/show-hide-when.ts index 418487e302..179f8a01b4 100644 --- a/ionic/components/show-hide-when/show-hide-when.ts +++ b/ionic/components/show-hide-when/show-hide-when.ts @@ -56,9 +56,9 @@ export class DisplayWhen { /** * - * The `show-when` attribute takes a string that represents a plaform or screen orientation. + * The `showWhen` 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). + * Complements the [hideWhen attribute](../HideWhen). * @usage * ```html *
I am only visible on iOS!
@@ -93,9 +93,9 @@ export class ShowWhen extends DisplayWhen { /** * - * The `hide-when` attribute takes a string that represents a plaform or screen orientation. + * The `hideWhen` 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). + * Complements the [showWhen attribute](../ShowWhen). * @usage * ```html *
I am hidden on Android!