Angularjs

Angular JS API

API is Application Programming Interface.

API is a group of java script functions that performs a common task like data conversion,objects iteration or comparing objects etc

angular.lowercase: converts a string to lowercase

angular.uppercase: converts a string to uppercase

angular.isstring(): it returns true if the reference is a string

angular.isNumber: it returns true if the reference is Number

Examples:


 <div ng-controller="MyController1">
      <div>First name: {{person.firstname|uppercase}}</div>
      <div>Last name: {{person.lastname|lowercase}}</div>
      <div>welcome {{person.firstname}} {{person.lastname}} </div>
    </div>

var MyController1 = function($scope)
{
 var person =
{
 firstname: "Tech",
 lastname: "Katak"
};
$scope.person=person;
};

Output:

First name: TECH
Last name: katak
welcome Tech Katak

© 2015, www.techkatak.com. All rights reserved.