Home » ng-table Filtering Sorting Paging using Angular Example

ng-table Filtering Sorting Paging using Angular Example

Today, We want to share with you ng-table Filtering Sorting Paging using Angular Example.In this post we will show you Angularjs ng table filtering example, hear for Angularjs filter table data using ng-table example we will give you demo and example for implement.In this post, we will learn about angular grid example with filter with an example.

ng-table Filtering Sorting Paging using Angular Example

There are the Following The simple About Angularjs filter / sort table data using ng-table Full Information With Example and source code.

As I will cover this Post with live Working example to develop Angularjs filter table with ngtable example, so the angular table widget is used for this example is following below.

Read Also:  Laravel 6 insert query Example

AngularJS ng-table Filtering Sorting Paging Example

Angular is a platform for building mobile & desktop web Based user friendly and light weight applications.Angular,It’s TypeScript-based open-source Angularjs web application framework.


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
AngularJs Filter Table Columns Example - https://www.pakainfo.com/
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link rel="stylesheet" href="https://rawgit.com/esvit/ng-table/master/dist/ng-table.min.css">
<script src="https://rawgit.com/esvit/ng-table/master/dist/ng-table.min.js"></script>
<script type="text/javascript">
var angularTutorialApp = angular.module("ngtableModule", ["ngTable"]);
angularTutorialApp.controller("ngtableController", function ($scope, $filter, ngTableParams) {
$scope.members = [
{ name: "Gondaliya Keyur", age: 10, address: 'Rajkot' },
{ name: "Sejal Ramani", age: 30, address: 'Diu' },
{ name: "Parag Shukla", age: 29, address: 'Diu' },
{ name: "Nilesh Chovatiya", age: 25, address: 'Bangalore' },
{ name: "Bharat Sakhiya", age: 27, address: 'Surat' },
{ name: "Sachin Tendulkar", age: 38, address: 'Rajkot' },
{ name: "Krishna Nogboys", age: 25, address: 'Kakinada' },
{ name: "Ravi Dhameliya", age: 7, address: 'Rajkot' },
{ name: "Ghetiya Neha", age: 22, address: 'Vijayawada' },
{ name: "Nilesh Donga", age: 23, address: 'California' },
{ name: "Pramit Shah", age: 34, address: 'Atlanta' },
{ name: "Jigar Shah", age: 29, address: 'Repalle' },
{ name: "Pratik Shah", age: 19, address: 'Gondal' },
{ name: "Jalpa Pansuriya", age: 27, address: 'Surat' }
$scope.membersTable = new ngTableParams({
page: 1,
count: 5
}, {
total: $scope.members.length,
getData: function ($defer, arguments) {
$scope.data = arguments.sorting() ? $filter('orderBy')($scope.members, arguments.orderBy()) : $scope.members;
$scope.data = arguments.filter() ? $filter('filter')($scope.data, arguments.filter()) : $scope.data;
$scope.data = $scope.data.slice((arguments.page() - 1) * arguments.count(), arguments.page() * arguments.count());
<body ng-app="ngtableModule">
<div ng-controller="ngtableController">
<h2>AngularJS ng-table Filtering Example</h2>
<table ng-table ="membersTable" show-filter=true class="table table-bordered table-striped">
<tr ng-repeat="member in data">
<td data-title="'Name'" sortable="'name'" filter="{ 'name': 'text' }">{{member.name}}</td>
<td data-title="'Age'" sortable="'age'" filter="{ 'age': 'text' }">{{member.age}}</td>
<td data-title="'Address'" sortable="'address'" filter="{ 'address': 'text' }">{{member.address}}</td>

Web Programming Tutorials Example with Demo

Read :

Read Also:  Simple Get Category ID using Category Name


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about angularjs data table.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  ASP.NET Core MVC Tutorials with Example
  2. Read Also:  AngularJS Adding Form Fields Dynamically with PHP MySQLi
  3. Read Also:  Laravel autocomplete typeahead search example
  4. Read Also:  Retrieving URL Query String in PHP
  5. Read Also:  how to Install PHP Accelerator Xampp on Windows
  6. Read Also:  Simple VueJS Responsive Image Carousel Slider
  7. Read Also:  Table with CSS Styles using Angular Example
  8. Read Also:  ng-table Sorting using Angular Example
  9. Read Also:  ng-table using Angular Example
  10. Read Also:  ng-table Pagination using Angular Example

Leave a Comment

Your email address will not be published. Required fields are marked *