diff --git a/docs/angular/your-first-app.md b/docs/angular/your-first-app.md index 3a6f63286ef..06abbc374ee 100644 --- a/docs/angular/your-first-app.md +++ b/docs/angular/your-first-app.md @@ -106,7 +106,7 @@ Next, import `@ionic/pwa-elements` by editing `src/main.ts`. ```tsx import { defineCustomElements } from '@ionic/pwa-elements/loader'; -// Call the element loader after the platform has been bootstrapped +// Call the element loader before the bootstrapModule/bootstrapApplication call defineCustomElements(window); ``` diff --git a/docs/react/your-first-app.md b/docs/react/your-first-app.md index 12c11d17e11..5932c238b22 100644 --- a/docs/react/your-first-app.md +++ b/docs/react/your-first-app.md @@ -104,7 +104,7 @@ Next, import `@ionic/pwa-elements` by editing `src/main.tsx`. ```tsx import { defineCustomElements } from '@ionic/pwa-elements/loader'; -// Call the element loader after the platform has been bootstrapped +// Call the element loader before the render call defineCustomElements(window); ``` diff --git a/docs/vue/your-first-app.md b/docs/vue/your-first-app.md index c792cb40193..048198d77e6 100644 --- a/docs/vue/your-first-app.md +++ b/docs/vue/your-first-app.md @@ -104,8 +104,6 @@ Next, import `@ionic/pwa-elements` by editing `src/main.ts`. ```tsx // Above the createApp() line import { defineCustomElements } from '@ionic/pwa-elements/loader'; - -// Call the element loader after the platform has been bootstrapped defineCustomElements(window); ```