How can use Pagination in swiper slide in Ionic 6


 

<ion-content fullscreen class="ion-padding ion-text-center" scroll-y="false">

  <swiper-container [pagination]="{ clickable: true }">

    <swiper-slide *ngFor="let s of slides" >

      <img src="{{s.image}}" />  

      <div class="slide" >

        <h2>{{s.title}}</h2>

        <p>

         {{s.para}}

        </p>

        <ion-button color="tertiary"  (click)="goToHome()" shape="round">

          {{s.btnText}}

        </ion-button>

      </div>

    </swiper-slide>

  </swiper-container>

  <!-- slides.component.html -->

</ion-content>



Other Property also can you can use

[loop]="true" [autoHeight]="true" [allowTouchMove]="false"

[autoplay]="{ delay: 1000, disableOnInteraction: false }" [pagination]="{ clickable: true }" [navigation]="true"


'gradlew' is not recognized as an internal or external command, operable program or batch file.

 'gradlew' is not recognized as an internal or external command,

operable program or batch file.



Howto use ion slider in Ionic 6 - angular

First, update to the latest version of Ionic:

npm install @ionic/angular@latest

Once that is done, install the Swiper dependency in your project:

npm install swiper@latest


Add code homeslider.page.html

<ion-content fullscreen class="ion-padding" scroll-y="false"> <swiper-container> <swiper-slide *ngFor="let s of slides"> <img src="{{s.image}}" /> <div class="slide" > <h2>{{s.title}}</h2> <p> {{s.para}} </p> <ion-button color="tertiary" (click)="goToHome()" shape="round"> {{s.btnText}} </ion-button> </div> </swiper-slide> </swiper-container> <!-- slides.component.html --> </ion-content>

Add homeslider.ts


import { register } from 'swiper/element/bundle'; register();











WCF Error "This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case

 Error  :an error occurred while making the http request to url. this could be due to the fact that the server certificate is not configured properly with http.sys in the https case. this could also be caused by a mismatch of the security binding between the client and the server.

ANS

 

System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

How to check Network in Ionic 6 ?


 install


Step 1 : npm install @capacitor/network 

Step 2 :   

 import { Network } from '@capacitor/network

 constructor() {

    this.checkNetworkConnection();

  }

checkNetworkConnection(){

  Network.addListener('networkStatusChange', status => {

  console.log('Network status changed', status);

});

const logCurrentNetworkStatus = async () => {

  const status = await Network.getStatus();

  console.log('Network status:', status);

};

}




Generate Signed APK: Errors while building APK. You can find the errors in the 'Messages' view.

Issue:

Cause: error: invalid source release: 17



First Check Your Java Version :  Java --version

Solution:

   1. Source Compatibility : $JavaVersion.VERSION_11 

   2. Target Compatibility : $JavaVersion.VERSION_11




Error: self signed certificate in certificate chain

 Downloading and extracting tabs starter Error: self signed certificate in certificate chain

at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)

at TLSSocket.emit (node:events:527:28)

at TLSSocket._finishInit (node:_tls_wrap:946:8)

 

 

Solution: Run Below cmd:

 

set NODE_TLS_REJECT_UNAUTHORIZED=0








The project is using an incompatible version (AGP 8.0.0) of the Android Gradle plugin. Latest supported version is AGP 7.2.2

 Still no luck, I’ve deleted the empty line. Actually, if I use AGP 8.0.0-beta01 it works, but I consider not upgrading to AGP 8 yet and waiting for stable version. I end up using AGP 7.4.0 and add this in gradle.properties

android.enableNewResourceShrinker=false

Seems like they have a bug in the new shrink method and fixed in Gradle 8. ref:

AGP 8.0.0

Step:1




Step ; 2



Git command with explanation

𝟭.𝗴𝗶𝘁 𝗱𝗶𝗳𝗳: Show file differences not yet staged. 𝟮. 𝗴𝗶𝘁 𝗰𝗼𝗺𝗺𝗶𝘁 -m "commit message": Commit all tracked changes ...

Best for you