Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/developing/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ The available config keys can be found in the [`IonicConfig`](#ionicconfig) inte

The following example disables ripple effects and default the mode to Material Design:

import GlobalExample from '@site/docs/developing/config/_global.mdx';
import GlobalExample from './config/_global.mdx';

<GlobalExample />

## Per-Component Config {/* #per-component-config */}

Ionic Config is not reactive. Updating the config's value after the component has rendered will result in the previous value. It is recommended to use a component's properties instead of updating the config, when you require reactive values.

import PerComponentExample from '@site/docs/developing/config/_per-component.mdx';
import PerComponentExample from './config/_per-component.mdx';

<PerComponentExample />

Expand All @@ -32,23 +32,23 @@ Ionic Config can also be set on a per-platform basis. For example, this allows y

In the following example, we are disabling all animations in our Ionic app only if the app is running in a mobile web browser.

import PerPlatformExample from '@site/docs/developing/config/_per-platform.mdx';
import PerPlatformExample from './config/_per-platform.mdx';

<PerPlatformExample />

### Fallbacks {/* #fallbacks */}

The next example allows you to set an entirely different configuration based upon the platform, falling back to a default config if no platforms match:

import PerPlatformFallbackExample from '@site/docs/developing/config/_per-platform-overrides.mdx';
import PerPlatformFallbackExample from './config/_per-platform-fallback.mdx';

<PerPlatformFallbackExample />

### Overrides {/* #overrides */}

This final example allows you to accumulate a config object based upon different platform requirements.

import PerPlatformOverridesExample from '@site/docs/developing/config/_per-platform-fallback.mdx';
import PerPlatformOverridesExample from './config/_per-platform-overrides.mdx';

<PerPlatformOverridesExample />

Expand Down
10 changes: 5 additions & 5 deletions versioned_docs/version-v7/developing/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ The available config keys can be found in the [`IonicConfig`](#ionicconfig) inte

The following example disables ripple effects and default the mode to Material Design:

import GlobalExample from '@site/docs/developing/config/_global.mdx';
import GlobalExample from './config/_global.mdx';

<GlobalExample />

## Per-Component Config

Ionic Config is not reactive. Updating the config's value after the component has rendered will result in the previous value. It is recommended to use a component's properties instead of updating the config, when you require reactive values.

import PerComponentExample from '@site/docs/developing/config/_per-component.mdx';
import PerComponentExample from './config/_per-component.mdx';

<PerComponentExample />

Expand All @@ -31,23 +31,23 @@ Ionic Config can also be set on a per-platform basis. For example, this allows y

In the following example, we are disabling all animations in our Ionic app only if the app is running in a mobile web browser.

import PerPlatformExample from '@site/docs/developing/config/_per-platform.mdx';
import PerPlatformExample from './config/_per-platform.mdx';

<PerPlatformExample />

### Fallbacks

The next example allows you to set an entirely different configuration based upon the platform, falling back to a default config if no platforms match:

import PerPlatformFallbackExample from '@site/docs/developing/config/_per-platform-overrides.mdx';
import PerPlatformFallbackExample from './config/_per-platform-fallback.mdx';

<PerPlatformFallbackExample />

### Overrides

This final example allows you to accumulate a config object based upon different platform requirements.

import PerPlatformOverridesExample from '@site/docs/developing/config/_per-platform-fallback.mdx';
import PerPlatformOverridesExample from './config/_per-platform-overrides.mdx';

<PerPlatformOverridesExample />

Expand Down
10 changes: 5 additions & 5 deletions versioned_docs/version-v8/developing/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ The available config keys can be found in the [`IonicConfig`](#ionicconfig) inte

The following example disables ripple effects and default the mode to Material Design:

import GlobalExample from '@site/docs/developing/config/_global.mdx';
import GlobalExample from './config/_global.mdx';

<GlobalExample />

## Per-Component Config {/* #per-component-config */}

Ionic Config is not reactive. Updating the config's value after the component has rendered will result in the previous value. It is recommended to use a component's properties instead of updating the config, when you require reactive values.

import PerComponentExample from '@site/docs/developing/config/_per-component.mdx';
import PerComponentExample from './config/_per-component.mdx';

<PerComponentExample />

Expand All @@ -32,23 +32,23 @@ Ionic Config can also be set on a per-platform basis. For example, this allows y

In the following example, we are disabling all animations in our Ionic app only if the app is running in a mobile web browser.

import PerPlatformExample from '@site/docs/developing/config/_per-platform.mdx';
import PerPlatformExample from './config/_per-platform.mdx';

<PerPlatformExample />

### Fallbacks {/* #fallbacks */}

The next example allows you to set an entirely different configuration based upon the platform, falling back to a default config if no platforms match:

import PerPlatformFallbackExample from '@site/docs/developing/config/_per-platform-overrides.mdx';
import PerPlatformFallbackExample from './config/_per-platform-fallback.mdx';

<PerPlatformFallbackExample />

### Overrides {/* #overrides */}

This final example allows you to accumulate a config object based upon different platform requirements.

import PerPlatformOverridesExample from '@site/docs/developing/config/_per-platform-fallback.mdx';
import PerPlatformOverridesExample from './config/_per-platform-overrides.mdx';

<PerPlatformOverridesExample />

Expand Down
Loading