Angularjs 49
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 […]
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 […]
AngularJS Require Attribute Directive Development
AngularJS provides $directive() method to create custom directive. directive() method takes no of initialization argument to build the directive component. There is one important attribute names 'require' through which a directive can call the API method if any exist in the parent directive. In this Demo,"We will create 2 directive.In one of the directive a […]