I’m creating a ionic app in capacitor using command :-
ionic start test blank --type=angular --capacitor
then I add
ionic build
npx cap add ios
npx cap add android
After that, i edited home-page.html
with following code:-
<ion-header>
<ion-toolbar color="primary">
<ion-title>
Devdactic Capacitor Plugin
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-button expand="full" (click)="getContacts()">
Load Contacts
</ion-button>
<ion-list>
<ion-item *ngFor="let c of contacts">
<ion-label>
{{ c.firstName }} {{ c.lastName }}
<p>
{{ c.telephone }}
</p>
</ion-label>
</ion-item>
</ion-list>
</ion-content>
On running ionic serve
i get,
Then I synced the changes with android app using,
npx cap sync android
but on android i get,
What I am doing wrong?