Wednesday, September 6, 2017

What is Global API?

Global API provides you global functions to perform common JavaScript tasks such as comparing objects, deep copying, iterating through objects, and converting JSON data etc. All global functions can be accessed by using the angular object. The list of global functions is given below:

Name
Description
Converts the specified string to lowercase.


Converts the specified string to uppercase.


Invokes the iterator function once for each item in obj collection, which can be
either an object or an array.



Determines if a reference is undefined.


Determines if a reference is defined.


Determines if a reference is an Object.


No comments:

Post a Comment

What is restrict option in directive?

The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...