Skip to content

Commit

Permalink
fix(mdx): update the example paths
Browse files Browse the repository at this point in the history
  • Loading branch information
thetaPC committed Apr 18, 2024
1 parent 48ed788 commit dfda294
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions versioned_docs/version-v7/developing/config.md
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/index.md';
import GlobalExample from '@site/versioned_docs/version-v7/developing/config/global/index.md';

<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/index.md';
import PerComponentExample from '@site/versioned_docs/version-v7/developing/config/per-component/index.md';

<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/index.md';
import PerPlatformExample from '@site/versioned_docs/version-v7/developing/config/per-platform/index.md';

<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/index.md';
import PerPlatformFallbackExample from '@site/versioned_docs/version-v7/developing/config/per-platform-overrides/index.md';

<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/index.md';
import PerPlatformOverridesExample from '@site/versioned_docs/version-v7/developing/config/per-platform-fallback/index.md';

<PerPlatformOverridesExample />

Expand Down

0 comments on commit dfda294

Please sign in to comment.