You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/enable-dynamic-configuration-javascript.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,12 +14,9 @@ ms.author: yanzh
14
14
---
15
15
# Tutorial: Use dynamic configuration in JavaScript
16
16
17
-
Data from App Configuration can be loaded and consumed as a Map or an object.
18
-
For more information, see the [quickstart](./quickstart-javascript-provider.md).
19
-
The Azure App Configuration JavaScript provider supports caching and refreshing configuration dynamically without app restart.
20
-
This tutorial shows how to enable dynamic configuration in JavaScript applications.
21
-
22
-
In this tutorial, you learn how to set up your JavaScript app to update its configuration in response to changes in an App Configuration store.
17
+
In this tutorial, you learn how to enable dynamic configuration in your JavaScript applications.
18
+
The example in this tutorial builds on the sample application introduced in the JavaScript quickstart.
19
+
Before you continue, finish [Create a JavaScript app with Azure App Configuration](./quickstart-javascript-provider.md).
23
20
24
21
## Prerequisites
25
22
@@ -40,10 +37,9 @@ Add the following key-value to your Azure App Configuration store. For more info
40
37
## Reload data from App Configuration
41
38
42
39
The following examples show how to use refreshable configuration values in console applications.
43
-
The refresh behavior is configured by `refreshOptions` parameter when calling `load` function.
44
-
The loaded configuration is updated when a change is detected on the server.
40
+
Choose the following instructions based on how your application consumes configuration data loaded from App Configuration, either as a `Map` or a configuration object.
45
41
46
-
1. Open the file *app.js* and update the `load` function. Add a `refreshOptions` parameter to enable the refresh and configure refresh options. By default, a refresh interval of 30 seconds is used, but you can override it with the `refreshIntervalInMs` property.
42
+
1. Open the file *app.js* and update the `load` function. Add a `refreshOptions` parameter to enable the refresh and configure refresh options. The loaded configuration will be updated when a change is detected on the server. By default, a refresh interval of 30 seconds is used, but you can override it with the `refreshIntervalInMs` property.
47
43
48
44
### [Use configuration as Map](#tab/configuration-map)
0 commit comments