API means Application Programming Interface.

AngularJS API syntax

AngularJS Global API A collection of JavaScript functions for performing common tasks, such as:

Compare objects

Iterate objects

Convert objects

Global API Functions are accessed using angular objects.

Some common API functions are listed below:

API Description
angular.lowercase() Convert the string to lowercase
angular.uppercase() Convert the string to uppercase
angular.isString() Determine whether the given object is a string, and return true if so.
angular.isNumber() Determine whether the given object is a number, and return true if so.

AngularJS API example

     

{{ x1 }}

{{ x2 }}


Run instance »

Click the "Run instance" button to view the online instance