Tag Archives: AngularJS

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

AngularJS: Starting with controller – display the maths times table

In the previous post AngularJS Example 2 – Create and display the maths times tables using ng-repeat we learnt to use the basics and ng-repeat directive to display the repeating html template. And now we introduce the controller in AngularJS application. Simply controller is the one of the part of the MVC(Model – View – … Continue reading AngularJS: Starting with controller – display the maths times table