@juraj_synestha wrote:
So I managed to get the Capacitor working for an old Ionic v1, AngularJS - it can be built and deployed. Now I’d like to switch from using Cordova plugins to Capacitor APIs - for example Camera. In the Capacitor docs, I see this:
import { Plugins, CameraResultType } from '@capacitor/core'; const { Camera } = Plugins;
There are problems with this approach:
- old Ionic v1 apps use AngularJS and build process which doesn’t support ES6 imports. What can I do to support them?
- @capacitor/core is an NPM plugin. In Ionic v1 apps, the NPM plugins live in
node_modules/
, while the app source code is inwww/
. The app can only access packages located inwww/lib/
, installed by Bower - but @capacitor/core is not available via Bower.Is there a way to use Capacitor APIs in Ionic v1, AngularJS app?
Thank you for any suggestions!
Posts: 1
Participants: 1