Angular ngx bootstrap Pagination Component Last Updated : 07 Mar, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report Angular ngx bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use Pagination in angular ngx bootstrap. Installation syntax: npm install ngx-bootstrap --save Approach: First, install the angular ngx bootstrap using the above-mentioned command.Add the following script in index.html<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"> Import Pagination component in module.tsIn app.component.html, make a Pagination component.Serve the app using ng serve. Example 1: index.html <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Demo</title> <base href="/"> <meta name="viewport" content= "width=device-width,initial-scale=1"> <link href= "https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href= "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet"> <link href= "https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> </head> <body class="mat-typography"> <app-root></app-root> </body> </html> app.component.html <div class="row"> <div class="col-xs-12 col-12"> <pagination [totalItems]="totalItems" [(ngModel)]="currentPage"> </pagination> </div> </div> app.module.ts import { NgModule } from '@angular/core'; // Importing forms module import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { PaginationModule } from 'ngx-bootstrap/pagination'; import { AppComponent } from './app.component'; @NgModule({ bootstrap: [ AppComponent ], declarations: [ AppComponent ], imports: [ FormsModule, BrowserModule, BrowserAnimationsModule, ReactiveFormsModule, PaginationModule ] }) export class AppModule { } Output: Comment More infoAdvertise with us Next Article Angular ngx bootstrap Pagination Component T taran910 Follow Improve Article Tags : Web Technologies AngularJS Angular-ngx-bootstrap Similar Reads Angular ng Bootstrap Pagination Component Angular ng bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites.In this article, we will see how to use Pagination in angular ng bootstrap. Pagination is used to make a group of pag 2 min read Angular ngx Bootstrap Tabs Component Angular ngx bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use Tabs in angular ngx bootstrap. Installation syntax: npm install ngx-bootst 2 min read Angular ngx Bootstrap Typeahead Component Angular ngx bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites. In this article, we will know how to use Typeahead in angular ngx bootstrap. Installation syntax: npm install ngx-b 2 min read Angular ngx Bootstrap Popover Component Angular ngx bootstrap is a bootstrap framework used with angular to create components with great styling and this framework is very easy to use and is used to make responsive websites.In this article we will know how to use Popover in angular ngx bootstrap. Popover is used to make a button that will 2 min read React-Bootstrap Pagination Component React-Bootstrap is a front-end framework that was designed keeping react in mind. Pagination Component provides a way for users to switch between pages easily. It is basically a set of presentational components for providing a better UI experience to the user. We can use the following approach in Re 2 min read Like