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
To use vue3-app-configuration, you need to initialize it in your main application file, typically main.ts or main.js.
13
+
To integrate vue3-app-configuration into your application, you'll need to initialize it in your main application file, usually named main.ts or main.js. You can either fetch your feature flags before or after the app has mounted, depending on your specific requirements and preferences.
14
+
15
+
## After the app has mounted (non-blocking)
16
+
17
+
In this setup, feature flags are reactive and synchronous.
14
18
15
19
```ts
16
20
import { createApp } from"vue";
@@ -19,54 +23,49 @@ import { AppConfigurationPlugin } from "vue3-app-configuration";
Replace 'your-azure-configuration-readonly-connection-string' with your actual connection string. For help with setting up a connection string and using feature flags in Azure, check out this guide: [Feature Flags in Vue with Azure App Configuration](https://www.tvaidyan.com/2022/07/14/feature-flags-in-vue-with-azure-app-configuration).
31
-
32
-
## Using in Vue Components
33
-
34
-
You can use the `vue3-app-configuration` plugin in your Vue components in two ways: using an async non-reactive method or a non-blocking reactive method.
35
+
## Before the app has mounted (blocking)
35
36
36
-
### Reactive Usage
37
+
In this setup, feature flags are also reactive, but fetched before your application mounts.
Remember to replace 'your-azure-configuration-readonly-connection-string' with your actual connection string. For help with setting up a connection string and using feature flags in Azure, check out this guide: [Feature Flags in Vue with Azure App Configuration](https://www.tvaidyan.com/2022/07/14/feature-flags-in-vue-with-azure-app-configuration).
0 commit comments