Category Archives: AngularJS

Sorting objects/columns with multiple fields AngularJS using HTML template binding and javaScript

Sorting in the tabular data is very common task. If you are not using the ui-grid and using other component which doesn’t provide the inbuilt sorting feature, then you need to do some additional work for the sorting. Suppose, I have a HTML table and using the simple ng-repeat directive. I am showing the employees … Continue reading Sorting objects/columns with multiple fields AngularJS using HTML template binding and javaScript

AngularJs directive: Restrict user to enter value with only ‘N’ decimal places

Directive Name: aDecimals How to Use: Add the attribute: n-decimals=”n” where n is the number like 2,3… If you want to restrict user to 2 decimal points, write like this: evo-decimals=”2″ Source Code: The following code will restrict user to enter numeric value with decimal upto 4 place. Javascript code var app = angular.module(’plunker’, []); … Continue reading AngularJs directive: Restrict user to enter value with only ‘N’ decimal places

AngularJS: How to filtering and order by in the Repeaters

In the previous post ‘starting with controller‘ we learnt how to create and use the controller and ng-repeat directive in the AngularJS template. In the post we will learn the filtering and order by functionality within the repeaters(using ng-repeat). In the below example user enter the search keyword(s) in the input element and see the … Continue reading AngularJS: How to filtering and order by in the Repeaters