File tree Expand file tree Collapse file tree 7 files changed +174
-27
lines changed Expand file tree Collapse file tree 7 files changed +174
-27
lines changed Original file line number Diff line number Diff line change 1717- [x] Auto-import Ionic components and composables throughout your app
1818- [x] Ionic Router integration
1919- [x] Pre-rendering auto-configuration
20+ - [x] Mobile meta tags
21+ - [x] PWA support with [ ` nuxt-pwa-module ` ] ( https://github.com/kevinmarrec/nuxt-pwa-module )
2022- [ ] Capacitor implementation confirmed working
2123
2224## Quick setup
@@ -39,6 +41,8 @@ export default defineNuxtConfig({
3941 ionic: {
4042 // default options - no configuration is required
4143 integrations: {
44+ meta: true ,
45+ pwa: true ,
4246 router: true ,
4347 },
4448 css: {
Original file line number Diff line number Diff line change 5252 "dependencies" : {
5353 "@ionic/vue" : " ^6.1.10" ,
5454 "@ionic/vue-router" : " ^6.1.10" ,
55+ "@kevinmarrec/nuxt-pwa" : " ^0.3.0" ,
5556 "@nuxt/kit" : " ^3.0.0-rc.4" ,
5657 "pathe" : " ^0.3.0" ,
5758 "unimport" : " ^0.2.9"
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ export default defineNuxtConfig({
44 modules : [ 'nuxt-ionic' ] ,
55 ionic : {
66 // integrations: {
7+ // meta: true,
8+ // pwa: true,
79 // router: true,
810 // },
911 // css: {
Original file line number Diff line number Diff line change 2828 </ion-list >
2929
3030 <ion-fab vertical =" bottom" horizontal =" end" slot =" fixed" >
31- <ion-fab-button @click = " () => router.push(' /new') " >
31+ <ion-fab-button router-link = " /new" >
3232 <ion-icon :icon =" add" ></ion-icon >
3333 </ion-fab-button >
3434 </ion-fab >
3838
3939<script setup>
4040import { add } from ' ionicons/icons'
41- const router = useIonRouter ()
4241useHead ({
4342 title: ' Nuxt Ionic' ,
4443})
You can’t perform that action at this time.
0 commit comments