VOOZH about

URL: https://www.geeksforgeeks.org/angular-js/how-to-group-data-with-angular-filter/

⇱ How to group data with Angular filter ? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to group data with Angular filter ?

Last Updated : 29 Jul, 2020

The task is to show how to group-data with an Angular-filter.

Steps involved:

1. You can install angular-filter using these four different methods:

👁 Image
  • Via Bower: by running $ bower install angular-filter from your terminal
👁 Image
👁 Image
👁 Image
  • Via npm: by running $ npm install angular-filter from your terminal.
👁 Image
Installing via npm 
👁 Image
  • Via cdnjs: add the following script-src to your application.
👁 Image

2. Include angular-filter.js (or angular-filter.min.js) in your index.html, after including Angular itself as shown in the below example.

3. Add 'angular.filter' to your main module's list of dependencies.

Example: In this example, we will group dogs by their breeds using angular-filter.

Output: 

👁 Image
Comment

Explore