

{"id":50203,"date":"2019-02-20T15:45:11","date_gmt":"2019-02-20T10:15:11","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=50203"},"modified":"2020-01-31T10:45:25","modified_gmt":"2020-01-31T05:15:25","slug":"angularjs-api","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/angularjs-api\/","title":{"rendered":"AngularJS API &#8211; 8 Types of Global API&#8217;s with Examples"},"content":{"rendered":"<p>In this AngularJS API tutorial, we will discuss What is Global API and AngularJS API functions with their examples. But, before we start this <strong><a href=\"https:\/\/data-flair.training\/blogs\/angularjs-tutorial\/\">AngularJS tutorial<\/a><\/strong>, do you know what is API?<\/p>\n<p><strong>API (Application Programming Interface)<\/strong> is a software intermediary that allows two applications to communicate with each other. Every application you are using on your phone involves API.\u00a0When you are using an application on your cell phone, the application first gets connected to the internet and sends data to the server. After that data is retrieved at a server and it interprets the data, performs an action to convert it into a readable format and sends the data back to the phone. This is done because of the API.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-50219\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg\" alt=\"Types of AngularJS Global API\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<h2>What is the AngularJS Global API?<\/h2>\n<p><em>When you are using AngularJS to implement an application, you find that there are certain tasks that you need to perform regularly such as object comparison, data conversion etc. For this purpose, you require a lot of common functionalities, which are provided by<\/em> <strong>AngularJS API<\/strong>.<\/p>\n<p>It is a set of a function of javascript. When an angular.js library is loaded then only Global APIs become available in an angularJS application.<\/p>\n<p>AngularJS global API is used to perform a task such as:<\/p>\n<ol>\n<li>Comparison of objects<\/li>\n<li>Iteration of objects<\/li>\n<li>Conversion of data<\/li>\n<\/ol>\n<p>To access the AngularJS global API, the object is required.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/dom-in-angularjs\/\">Do you know what are the major Directives for AngularJS HTML DOM?<\/a><\/strong><\/p>\n<h2>AngularJS API Function<\/h2>\n<p>Here, is a list of some common API function in AngularJS with examples:<\/p>\n<h3>1. angular.copy()<\/h3>\n<p>angular.copy API function is used to create a deep copy of an array of object.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;orignal text: {{ a }}&lt;\/p&gt;\r\n&lt;p&gt;result: Copied Text is {{ b }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar t = angular.module('App', []);\r\nt.controller('myController', function($scope) {\r\n    $scope.a = \"Angular\";\r\n    $scope.b = angular.copy($scope.a);\r\n});\r\n    &lt;\/script&gt;\r\n\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text: Angular<br \/>\nResult: Copied Text is Angular<\/p>\n<h3>2. angular.lowercase()<\/h3>\n<p>angular.lowecase API function is used to convert the original string into a lowercase string.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;orignal text: {{ a }}&lt;\/p&gt;\r\n&lt;p&gt;{{ b }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar t = angular.module('App', []);\r\nt.controller('myController', function($scope) {\r\n     $scope.a = \"Angular\";\r\n     $scope.b = angular.lowercase($scope.a);\r\n});\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/data-binding-in-angularjs\/\">Also, see &#8211; Two types of Data Binding in AngularJS<\/a><\/strong><\/p>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text: Angular<\/p>\n<p>Result: Angular<\/p>\n<h3>3. angular.uppercase()<\/h3>\n<p>angular.uppercase API function is used to convert the original string into an uppercase string.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;original text: {{ a }}&lt;\/p&gt;\r\n&lt;p&gt;{{ b }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar t = angular.module('App', []);\r\nt.controller('myController', function($scope) {\r\n      $scope.a = \"Angular\";\r\n      $scope.b = angular.uppercase($scope.a);\r\n});\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text: Angular<\/p>\n<p>Result: ANGULAR<\/p>\n<h3>4. angular.Date()<\/h3>\n<p>angular.Date <strong><a href=\"https:\/\/angular.io\/api\">API function<\/a><\/strong> can return a true or false value. It returns a true value if the parameter passed is of date type otherwise returns false.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;orignal text: {{ a }}&lt;\/p&gt;\r\n&lt;p&gt;result: {{ b }}&lt;\/p&gt;\r\n&lt;p&gt;orignal text: {{ a1 }}&lt;\/p&gt;\r\n&lt;p&gt;result: {{ b1 }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar t = angular.module('App', []);\r\nt.controller('myController', function($scope) {\r\n    $scope.a = \"Angular\";\r\n    $scope.b = angular.isDate($scope.a);\r\n    $scope.a1 = new Date();\r\n    $scope.b1 = angular.isDate($scope.a1);\r\n});\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text: Angular<\/p>\n<p>Result: false<\/p>\n<p>Original text: &#8220;2019-01-15T06:57:06.026Z&#8221;<\/p>\n<p>Result: true<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/angularjs-mvc\/\">Learn How MVC works in AngularJS?<\/a><\/strong><\/p>\n<h3>5. angular.toJson()<\/h3>\n<p>With this angular.toJson API function,\u00a0 we can convert a javascript object into JSON string format.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;orignal text: {{ a }}&lt;\/p&gt;\r\n&lt;p&gt;result: {{ b }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar t = angular.module('App', []);\r\nt.controller('myController', function($scope) {\r\n     $scope.a = \"Angular\";\r\n     $scope.b = angular.toJson($scope.a);\r\n\r\n});\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text: Angular<\/p>\n<p>result: &#8220;Angular&#8221;<\/p>\n<h3>6. angular.equals()<\/h3>\n<p>angular.equals API function returns true or false. If the two strings are equals, it returns true otherwise false.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;orignal text: {{ a }}&lt;\/p&gt;\r\n&lt;p&gt;result: {{ b }}&lt;\/p&gt;\r\n&lt;p&gt;result: {{ b1 }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar t = angular.module('App', []);\r\nt.controller('myController', function($scope) {\r\n     $scope.a = \"Angular\";\r\n     $scope.a1= \"angular\";\r\n     $scope.a2=\"Angular\";\r\n     $scope.b = angular.equals($scope.a,$scope.a1);\r\n     $scope.b1 = angular.equals($scope.a,$scope.a2);\r\n});\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text: Angular<\/p>\n<p>Result: false<\/p>\n<p>Result: true<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/angularjs-controller\/\">Follow this link to know about AngularJS Controller with syntax &amp; example<\/a><\/strong><\/p>\n<h3>7. angular.isString()<\/h3>\n<p>angular.isString API function returns true or false. If the reference is not the string, it returns false and if the reference is a string, it returns true.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;Orignal text:{{ a }}&lt;\/p&gt;\r\n&lt;p&gt;{{ a1 }}&lt;\/p&gt;\r\n&lt;p&gt;Orignal text:{{ b }}&lt;\/p&gt;\r\n&lt;p&gt;{{ b1 }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar x = angular.module('App', []);\r\nx.controller('myController', function($scope) {\r\n     $scope.a = \"abc\";\r\n     $scope.a1 = angular.isString($scope.a);\r\n     $scope.b = 123;\r\n     $scope.b1 = angular.isString($scope.b);\r\n\r\n});\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text:abc<\/p>\n<p>true<\/p>\n<p>Original text:123<\/p>\n<p>false<\/p>\n<h3>8. angular.isNumber()<\/h3>\n<p>angular.isNumber API function returns true or false. If the reference is not number, it returns false and if the reference is number, it returns true.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;script src=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.6.9\/angular.min.js\"&gt;&lt;\/script&gt;\r\n&lt;body&gt;\r\n\r\n&lt;div ng-app=\"App\" ng-controller=\"myController\"&gt;\r\n&lt;p&gt;Orignal text:{{ a }}&lt;\/p&gt;\r\n&lt;p&gt;{{ a1 }}&lt;\/p&gt;\r\n&lt;p&gt;Orignal text:{{ b }}&lt;\/p&gt;\r\n&lt;p&gt;{{ b1 }}&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;script&gt;\r\nvar x = angular.module('App', []);\r\nx.controller('myController', function($scope) {\r\n     $scope.a = 123;\r\n     $scope.a1 = angular.isNumber($scope.a);\r\n     $scope.b = \"abc\";\r\n     $scope.b1 = angular.isNumber($scope.b);\r\n});\r\n&lt;\/script&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Original text:123<\/p>\n<p>true<\/p>\n<p>Original text:abc<\/p>\n<p>false<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/angularjs-ng-view\/\">Do you know how to implement View in AngularJS?<\/a><\/strong><\/p>\n<h2>Summary<\/h2>\n<p>Hence, we can conclude that the AngularJS API is so valuable that it comprises a large part of the business. API in angularJS provided certain utilities such as lowercase, uppercase, equals, isString etc to perform common tasks more efficiently. It is a useful thing through which two applications can communicate and exchange information between themselves.<\/p>\n<p>Hope, you liked our explanation, if you have any query, feel free to ask in the comment box. You feel excited to know <a href=\"https:\/\/data-flair.training\/blogs\/career-in-angularjs\/\"><strong>Latest AngularJS Career Opportunities.<\/strong><\/a><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1643,&quot;href&quot;:&quot;https:\\\/\\\/angular.io\\\/api&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20240520022620\\\/https:\\\/\\\/angular.io\\\/api&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 14:59:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-23 15:57:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 09:16:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-23 01:50:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 14:39:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-12 13:40:57&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-04-12 13:40:57&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this AngularJS API tutorial, we will discuss What is Global API and AngularJS API functions with their examples. But, before we start this AngularJS tutorial, do you know what is API? API (Application&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":50219,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18153],"tags":[18949,18950,18947,18948,18951],"class_list":["post-50203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-angularjs","tag-angularjs-api","tag-angularjs-global-api","tag-api-function-in-angularjs","tag-api-in-angularjs","tag-application-programming-interface"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AngularJS API - 8 Types of Global API&#039;s with Examples - DataFlair<\/title>\n<meta name=\"description\" content=\"In this Angular API tutorial, we will see different types of Angular Global API Functions with their syntax and examples: Angularjs lowercase, uppercase etc\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/angularjs-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AngularJS API - 8 Types of Global API&#039;s with Examples - DataFlair\" \/>\n<meta property=\"og:description\" content=\"In this Angular API tutorial, we will see different types of Angular Global API Functions with their syntax and examples: Angularjs lowercase, uppercase etc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/angularjs-api\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-20T10:15:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-31T05:15:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AngularJS API - 8 Types of Global API's with Examples - DataFlair","description":"In this Angular API tutorial, we will see different types of Angular Global API Functions with their syntax and examples: Angularjs lowercase, uppercase etc","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/angularjs-api\/","og_locale":"en_US","og_type":"article","og_title":"AngularJS API - 8 Types of Global API's with Examples - DataFlair","og_description":"In this Angular API tutorial, we will see different types of Angular Global API Functions with their syntax and examples: Angularjs lowercase, uppercase etc","og_url":"https:\/\/data-flair.training\/blogs\/angularjs-api\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-02-20T10:15:11+00:00","article_modified_time":"2020-01-31T05:15:25+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"AngularJS API &#8211; 8 Types of Global API&#8217;s with Examples","datePublished":"2019-02-20T10:15:11+00:00","dateModified":"2020-01-31T05:15:25+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/"},"wordCount":629,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg","keywords":["AngularJS API","AngularJS Global API","API function in AngularJS","API in AngularJS","Application Programming Interface"],"articleSection":["AngularJS Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/angularjs-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/","url":"https:\/\/data-flair.training\/blogs\/angularjs-api\/","name":"AngularJS API - 8 Types of Global API's with Examples - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg","datePublished":"2019-02-20T10:15:11+00:00","dateModified":"2020-01-31T05:15:25+00:00","description":"In this Angular API tutorial, we will see different types of Angular Global API Functions with their syntax and examples: Angularjs lowercase, uppercase etc","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/angularjs-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/02\/AngularJS-API-Function-01.jpg","width":1200,"height":628,"caption":"Types of AngularJS Global API"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/angularjs-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"AngularJS Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/angularjs\/"},{"@type":"ListItem","position":3,"name":"AngularJS API &#8211; 8 Types of Global API&#8217;s with Examples"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/50203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=50203"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/50203\/revisions"}],"predecessor-version":[{"id":50420,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/50203\/revisions\/50420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/50219"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=50203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=50203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=50203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}