AngularJS Built-in Functions

Like any other scripting language AngulatJS also has its own built in functions. These built in functions could be very usefull when you require to display text in upper case or display text in lower case or check if variable contains string value. Sometimes you may need to chack if current object is function or is number or is date or is array.

When you work with json data you may require to check if the object is json or convert javascript object to JSON, convert json data into javascript object. In order to use AngularJS functions, you need to understand each AngularJS built in function in details given below.

AngularJS Built in Functions

Here is a list of built-in functions with description.

FunctionDescription
lowercaseThis function is intended to converts the specified string to lowercase.
uppercaseThis function is intended to converts the specified string to uppercase.
forEachThis function is intended to iterator the each items in array.
extendThis function is intended to extend the destination object by copying the enumerable properties of object ie. var obj = angular.extend({}, obj1, obj2).
mergeThis function is intended to deeply extend the destination object by copying the enumerable properties of object ie. var obj = angular.merge({}, obj1, obj2).
noopThis function performs no operations, can be useful when writing code in the functional style.
identityThis function returns its first argument, can be useful when writing code in the functional style.
isUndefinedThis function is intended to identify if a reference is undefined.
isDefinedThis function is intended to identify if a reference is defined.
isObjectThis function is intended to identify if a reference is object, nulls are not considered to be objects.
isStringThis function is intended to identify if a reference is string.
isNumberThis function is intended to identify if a reference is number.
isDateThis function is intended to identify if a value is date.
isArrayThis function is intended to identify if a reference is array.
isFunctionThis function is intended to identify if a reference is function.
isElementThis function is intended to identify if a reference is DOM element.
copyThis function is intended to creates a deep copy of source object or an array.
equalsThis function is intended to identify two objects or two values are equivalent, it supports value types, regular expressions, arrays and objects.
bindAllows to work with partial functions.
toJsonThis function is intended to serializes input into a JSON-formatted string.
fromJsonThis function is intended to deserializes a JSON string.
bootstrapThis function is intended to manually start up angular application.
reloadWithDebugInfoThis function is intended to reload the current application with debug information turned on.
injectorThis function is intended to creates an injector object that can be used for retrieving services as well as for dependency injection.
elementThis function is intended to wraps a raw DOM element or HTML string as a jQuery element.
moduleThis function is a global place for creating, registering and retrieving Angular modules.

In order to understand each filter, click on any filter listed in the above table.

See Also

AngularJS Built-in Filters
AngularJS Built-in Directives
AngularJS Expression
AngularJS Built-in Events
AngularJS Scope Methods
AngularJS Built-in Services
AngularJS Controller Inheritance
AngularJS Custom Directives


 
SHARE THIS IF YOU LIKE!
submit to reddit

SUBSCRIBE FOR LATEST UPDATES
HAVE WE CONNECTED ON FACEBOOK?
TOP TUTORIALSTOP CODE EXAMPLESTOP LIVE DEMOLINKSSTAY CONNECTED
HTML Tutorial
HTML5 Tutorial
Bootstrap3 Tutorial
Javascript Tutorial
TypeScript Tutorial
AngularJS Tutorial
CSharp Tutorial
PHP Tutorial
Developer Tools
Javascript
AngularJS
Google MAP API V3
ASP.NET
Javascript
AngularJS
Google MAP API V3
Contact Us
Advertise with Us
Privacy Policy
Disclaimer
Stay connected. We actually like you. If you want to get up to the minute updates, then connect with us on your fav below.
 
Twitter   Linkedin   Facebook   Google+    RSS   Pinterest
 
Protected by Copyscape Original Content Checker
 
 
Copyright ©2017 www.techstrikers.com Unauthorized reproduction/replication of any part of this site is prohibited.