AngularJS Built-In Filter Example
AngularJS has built-in filter for using in expression. The filters are json,limitTo,oderBy,date,number,currency,lowercase and uppercase. In this demo, "We will see the use of these built-in filter in AngularJS application". Below code has the illustration of these filter with sample example. <!DOCTYPE html> <html ng-app="myApp"> <head> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular-sanitize.js"></script> <meta charset="utf-8"> <title>AngularJS Buit-In Filter […]
AngularJS $linky Filter Example
AngularJS has $linky() filter for filtering email, http and ftp resources from the text. In ngSanitize module has the definition of the $linky filter and present in angular-sanitize.js file. In this Demo, "We will use $linky filter for filtering email,http and ftp key values from text". Below code has both HTML and JavaScript implementation […]
Object create and defineProperties Method
New ECMAScript 5.1 has new methods create() and defineProperties() method. Using create() method you can create new object. Using defineProperties() method can be used to create new properties for the given object. In this Demo, “We will create new object using create() method and add new property using defineProperties() method“. Below code uses the […]
AngularJS Factory Object Development
AngularJS provides factory() method to create factory object that can be reused across application. A factory object can be injected to any module in AngularJS application. In this Demo, "We will create factory object called with some method and inject this object to a controller". Below code uses factory() method to create StringUtil object.It has […]