Installation Guide For Angular #40
-
Hi Khmyznikov, I want to express my gratitude for creating such an amazing package. I tried to install it on my Angular + Ionic Progressive Web App (PWA). Unfortunately, I found few errors from the node_modules. During my search for a solution, I discovered that the package is currently only supported for React. I'm reaching out to seek your assistance in installing it for my Angular PWA. Additionally, I'm interested in contributing to this project and being a part of its development. I would appreciate any guidance or support you can provide. Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
@Aashishb4u Hey! Looks like you need to put CUSTOM_ELEMENTS_SCHEMA on Angular side. Since this component is Web Component, no special support is needed for Angular: https://github.com/webcomponents/custom-elements-everywhere/tree/main/libraries/angular/src |
Beta Was this translation helpful? Give feedback.
-
Another option is use the component outside of Angular template scope, in HTML: Line 108 in 386537f |
Beta Was this translation helpful? Give feedback.
-
About TS errors: https://stackoverflow.com/a/45744513 |
Beta Was this translation helpful? Give feedback.
-
Here is a minimal working code: https://stackblitz.com/edit/aozf92?file=src%2Fapp%2Fpwa-install%2Fpwa-install.component.ts |
Beta Was this translation helpful? Give feedback.
-
Hi khmyznikov, Thanks :) |
Beta Was this translation helpful? Give feedback.
-
@Aashishb4u don't mind to fork that stackblitz and add a few event hooks or properties for better example? Maybe I can put it also to readme for Angular folks. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the component, I added it today to my PWA and got it working with the help of this thread. I just have a tip for Ionic/Angular users. If you want to use pwa-install on a page that has ion-footer, then you should put it inside the ion-footer section. If you put pwa-install inside of ion-content, the pwa-install still works but some of its content is hidden behind the ion-footer so you cannot use it, e.g. the install button was barely visible and I couldn't click it. For anybody interested this is my PWA: https://sportsdate.app |
Beta Was this translation helpful? Give feedback.
-
@pvo13 feel free to post your app in showcase thread of PWABuilder Discord: https://aka.ms/pwabuilderdiscord |
Beta Was this translation helpful? Give feedback.
About TS errors: https://stackoverflow.com/a/45744513