|
1 | 1 | ---
|
2 | 2 | title: Use dynamic configuration in JavaScript
|
3 | 3 | titleSuffix: Azure App Configuration
|
4 |
| -description: Learn how to dynamically update configuration data for JavaScript |
| 4 | +description: Learn how to dynamically update configuration data for JavaScript. |
5 | 5 | services: azure-app-configuration
|
6 | 6 | author: eskibear
|
7 | 7 | ms.service: azure-app-configuration
|
@@ -44,9 +44,9 @@ Add the following key-value to your Azure App Configuration store. For more info
|
44 | 44 |
|
45 | 45 | The following examples show how to use refreshable configuration values in console applications.
|
46 | 46 | The refresh behavior is configured by `refreshOptions` parameter when calling `load` function.
|
47 |
| -The loaded configuration will be updated when a change is detected on the server. |
| 47 | +The loaded configuration is updated when a change is detected on the server. |
48 | 48 |
|
49 |
| -1. Open the file *app.js*, update the `run()` function to call the `load` function with `refreshOptions` specified. |
| 49 | +1. Open the file *app.js* and update the `load` function with `refreshOptions` specified. |
50 | 50 |
|
51 | 51 | ### [Use configuration as Map](#tab/configurtion-map)
|
52 | 52 |
|
@@ -114,7 +114,7 @@ The loaded configuration will be updated when a change is detected on the server
|
114 | 114 |
|
115 | 115 | ---
|
116 | 116 |
|
117 |
| -1. Now the file *app.js* should look like the following: |
| 117 | +1. Now the file *app.js* should look like the following code snippet: |
118 | 118 |
|
119 | 119 | ### [Use configuration as Map](#tab/configurtion-map)
|
120 | 120 |
|
@@ -205,7 +205,7 @@ The loaded configuration will be updated when a change is detected on the server
|
205 | 205 | | *message* | *Hello World - Updated!* | Leave empty | Leave empty |
|
206 | 206 | | *sentinel* | *2* | Leave empty | Leave empty |
|
207 | 207 |
|
208 |
| -1. Once the values have been updated the updated value will print out when the refresh interval has passed. |
| 208 | +1. Once the values are updated, the updated value is printed after the refresh interval. |
209 | 209 |
|
210 | 210 | ```console
|
211 | 211 | Hello World - Updated!
|
|
0 commit comments