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

Event binding to dynamic/runtime html elements

There are lot of situation when you need to deal with runtime html elements. In this guide we will walkthrough for creating elements, registering events to elements, detaching events from elements and destroying elements from the html page. Creating elements if you are using JavaScript( not jQuery library) In an HTML document, the document object … Continue reading Event binding to dynamic/runtime html elements

Ambiguous match found: Error in ASP.Net Application

Some time it’s very hard to figure out whats exactly going wrong when we get Error “Ambiguous match found”. Because this issue you will seen when you publish code on server even your development code working fine and see you proper output. I face this problem today and after a lot of googling I figure … Continue reading Ambiguous match found: Error in ASP.Net Application

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