Skip to main content

Posts

Showing posts from July, 2014

What is mean by Filer in angularJS

What is mean by Filter in AngularJS ?      A filter is presenting format of value. It's like Date, String, Currency, Number and etc. Filter where using two place                    1. Template                    2. Controller or Service or Factory List of Filter in angularjs :  1. currency - It will present into currency format(Like $2000.00 , 2300.040) 2. number - It will present into number a text 3. date - It converted to string format 4. uppercase - String converted to uppercase 5. lowercase - String converted to lowercase 6. json - javascript object converted into json object 7. orderBy - Starting array of listed data. 8. limitTo - Specific number of element will store in array Filter in Controller Example: <html> <head> <title> My First Example </title> </head> <body> <div ng-app="filterModule">     <div ng-controller="filterController">      {{Myname}}     </div> </d

How to create basic angularJS Example ?

 How to create basic angularJS Example ?     First create module it contains have service, factory, controller and more. Here ng-app name is my application module name. HTML <html> <head> <title> My First Example </title> </head> <body> <div ng-app="myFirstModule">     <div ng-controller="myFirstContoller">         {{name}}     </div> </div> </body> <html> JavaScript: <script type="text/javascript" src="js/angular.js"></script> <script type="text/javascript"> var app = angular.module("myFirstModule",[]); app.controller("myFirstContoller", function($scope){ $scope.name = "Welcome to angularJS"; }); </script> Demo: Demo URL