

{"id":46391,"date":"2019-01-09T09:09:42","date_gmt":"2019-01-09T03:39:42","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=46391"},"modified":"2020-01-31T10:47:43","modified_gmt":"2020-01-31T05:17:43","slug":"ng-include-in-angularjs","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/","title":{"rendered":"AngularJS ng include &#8211; 2 Best Ways to Include HTML Code in File"},"content":{"rendered":"<p>In our last session, we discussed <a href=\"https:\/\/data-flair.training\/blogs\/ngmodel-in-angularjs\/\"><strong>ngmodel in AngularJS<\/strong><\/a>. Here, we will start a new topic, ng include or AngularJS Include. Along with this, we will study how to include HTML code into a file: client side include and server side include in AngularJS with their syntax and examples.<\/p>\n<p>So, are you ready to explore the ng include in AngularJS?<\/p>\n<div id=\"attachment_46402\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-46402\" class=\"wp-image-46402 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01.jpg\" alt=\"ng include Tutorial\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-46402\" class=\"wp-caption-text\">AngularJS ng include &#8211; 2 Best Ways to Include HTML Code<\/p><\/div>\n<h2>1. What is ng-include in AngularJS?<\/h2>\n<p>AngularJS provides functionality to include another <strong>angularJS file<\/strong> in the current file. By using <strong>ng-include <a href=\"https:\/\/data-flair.training\/blogs\/angularjs-directives\/\">directive<\/a><\/strong> we can perform this task.<\/p>\n<p>Suppose you have to use a single code or single logic multiple times so, rather than writing the same logic again and again, it&#8217;s better to write it once and use it again whenever required. This can be performed with ng-include in AngularJS. We can write the logic that we want to execute multiple times at different places in a single file and then we can include that file whenever and wherever we want that logic.<\/p>\n<p>The concept of include is present in .net and <strong>java<\/strong>.<\/p>\n<h2>2. How to Include\u00a0HTML Code of One File to Another File?<\/h2>\n<p>There are two best ways to include HTML Code in a file.<\/p>\n<h3>a. Client Side Include<\/h3>\n<p>For client side include in AngularJS, we can use a JavaScript programming language to embed the code of one file into another file.<\/p>\n<p>Create a file DemoOne.htm<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;div&gt;This file is to be included.&lt;\/div&gt;<\/pre>\n<h4>i. Example of Client Side ng include<\/h4>\n<p>Create another file Main.html where DemoOne.htm includes.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;html&gt; \r\n  &lt;head&gt; \r\n  &lt;script src=\"\/jquery.js\"&gt;&lt;\/script&gt; \r\n  &lt;script&gt; \r\n  $(function(){\r\n  $(\"#Content\").load(\"DemoOne.htm\"); \r\n  });\r\n    &lt;\/script&gt; \r\n  &lt;\/head&gt;\r\n\r\n&lt;body&gt; \r\n    &lt;div id=\"Content\"&gt;&lt;\/div&gt;\r\n   &lt;\/body&gt; \r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>This file is to be included<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/angularjs-mvc\/\">Do you know what is AngularJS MVC Architecture and how it works?\u00a0<\/a><\/strong><\/p>\n<p>\u2018$(\u2018#context\u2019).load(\u201cname_of_HTMLfile\u201d);\u2019 is the statement in a javascript function, which we use for inserting the code of an external file in the main file. Here, name_of_HTML file is the name of an external file whose logic you want to access in an external file.<\/p>\n<h3>b. Server Side Includes<\/h3>\n<p>The\u00a0Server side includes in AngularJS, are available throughout a site as a small piece of code. We can use it for the navigation menu, page header, page footer. It can accept various extensions, some of them are .shtml, .stm, .shtm, .cgi.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#include virtual=\"navigation.shtm\"<\/pre>\n<p>Virtual is a command in the above syntax used to specify the target or destination relative to the\u00a0particular domain. If we want to specify the path of a directory of a file, we can use &#8220;file parameter&#8221; (navigation.shtm is the name of a file that the user wants to include).<\/p>\n<h2>3. Purpose of ng include<\/h2>\n<p>We can use ng include in AngularJS mainly for these three purposes:<\/p>\n<ul>\n<li>Fetch the external HTML fragments in our main angular application.<\/li>\n<li>To compile the external HTML fragments in our main angular application.<\/li>\n<li>To include the external HTML fragments in our main angular application.<\/li>\n<\/ul>\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&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 ng-app=\"\"&gt;\r\n\r\n&lt;div ng-include=\"File.htm'\"&gt;&lt;\/div&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\ns\"&gt;&lt;\/script&gt;\r\n&lt;body ng-app=\"\"&gt;<\/pre>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/data-binding-in-angularjs\/\">Recommended Reading -Different Ways for Data Binding in AngularJS<\/a><\/strong><\/p>\n<p><strong>Code of File.htm<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;body&gt;\r\n\r\n&lt;h1&gt;Include Header&lt;\/h1&gt;\r\n\r\n&lt;p&gt;Using ng-include, this text has been included into the HTML page!\r\n\r\n&lt;\/p&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p>Include Header<\/p>\n<p>Using ng-include, this text has been included in the HTML page!<\/p>\n<p>In the above code with the ng-include directive, you have to specify the name of the file which we want to include in our main file.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;div ng-include=\"name_of_html_file\"&gt;\r\n&lt;\/div&gt;<\/pre>\n<p>Since angular uses the HTML language\u00a0for the view part. In HTML it is not possible to embed HTML\u00a0pages to achieve this, we can use Ajax\u00a0or server side includes.\u00a0While knowing a\u00a0case of angular, we can use an\u00a0ng-include directive to achieve the same functionality.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/angularjs-modules\/\">Do you know how to create AngularJS modules?<\/a><\/strong><\/p>\n<p><strong>Note:\u00a0<\/strong><em>By default, there is a constraint on a URL of a template that a particular URL is restricted to the same domain and protocol for that particular document only. We can do so by calling $sce.getTrustedResourceUrl on it. To load templates from other protocols or domains you may either wrap them or whitelist them as a trusted value.<\/em><\/p>\n<p>So, this was all about\u00a0ng-include in AngularJS. Hope you liked our explanation.<\/p>\n<h2>3. Conclusion<\/h2>\n<p>Therefore, we can conclude that<strong><a href=\"https:\/\/angularjs.org\/\"> include directive<\/a><\/strong> provides a way for code reusability. Using ng-include directive, we can access one angular file in another angular file. Without using ng-include in AngularJS we have to write the same code of one file again in another file to perform the same logic.<\/p>\n<p>Hence, we can say that ng- include directives are used for injecting the code of an external file in our main file so that, we can reuse the logic present in the external file in the main file without re-writing it. Furthermore, if you have any query, feel free to ask in the comment box.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/advanced-features-of-angularjs\/\">Related Topic &#8211; 10 Reasons to learn Angular JS<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1680,&quot;href&quot;:&quot;https:\\\/\\\/angularjs.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251012132518\\\/https:\\\/\\\/angularjs.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 16:56:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-16 02:56:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-24 06:09:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-30 12:33:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-03 15:56:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-08 03:38:13&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 16:19:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-20 14:42:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-26 19:45:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-03 07:20:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-11 17:57:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-16 16:10:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 09:22:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-25 06:28:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-04 03:52:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-07 17:37:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 15:27:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 02:00:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-22 18:31:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-26 20:27:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 13:34:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-07 18:08:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-16 17:59:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-20 14:32:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-29 10:50:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-04 14:38:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-13 05:55:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-26 07:28:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-11 21:16:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-15 22:44:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-21 16:17:00&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-21 16:17:00&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our last session, we discussed ngmodel in AngularJS. Here, we will start a new topic, ng include or AngularJS Include. Along with this, we will study how to include HTML code into a&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":46402,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18153],"tags":[18170,18168,18406,18169,18172,18171,18173,18167],"class_list":["post-46391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-angularjs","tag-angularjs-includes","tag-client-side-includes","tag-include-html-code","tag-ng-include","tag-ng-include-directive","tag-ng-include-in-angularjs","tag-purpose-of-ng-include","tag-server-side-includes"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>AngularJS ng include - 2 Best Ways to Include HTML Code in File - DataFlair<\/title>\n<meta name=\"description\" content=\"What is ng include in angularjs- How to include HTML Code in file: Server side Include,Client side Include with synytax, example, Purpose of Include\" \/>\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\/ng-include-in-angularjs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AngularJS ng include - 2 Best Ways to Include HTML Code in File - DataFlair\" \/>\n<meta property=\"og:description\" content=\"What is ng include in angularjs- How to include HTML Code in file: Server side Include,Client side Include with synytax, example, Purpose of Include\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/\" \/>\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-01-09T03:39:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-31T05:17:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AngularJS ng include - 2 Best Ways to Include HTML Code in File - DataFlair","description":"What is ng include in angularjs- How to include HTML Code in file: Server side Include,Client side Include with synytax, example, Purpose of Include","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\/ng-include-in-angularjs\/","og_locale":"en_US","og_type":"article","og_title":"AngularJS ng include - 2 Best Ways to Include HTML Code in File - DataFlair","og_description":"What is ng include in angularjs- How to include HTML Code in file: Server side Include,Client side Include with synytax, example, Purpose of Include","og_url":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-01-09T03:39:42+00:00","article_modified_time":"2020-01-31T05:17:43+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"AngularJS ng include &#8211; 2 Best Ways to Include HTML Code in File","datePublished":"2019-01-09T03:39:42+00:00","dateModified":"2020-01-31T05:17:43+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/"},"wordCount":785,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01.jpg","keywords":["AngularJS Includes","Client Side Includes","Include\u00a0HTML Code","ng-include","ng-include directive","ng-include in AngularJS","Purpose of ng-include","Server Side Includes"],"articleSection":["AngularJS Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/","url":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/","name":"AngularJS ng include - 2 Best Ways to Include HTML Code in File - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01.jpg","datePublished":"2019-01-09T03:39:42+00:00","dateModified":"2020-01-31T05:17:43+00:00","description":"What is ng include in angularjs- How to include HTML Code in file: Server side Include,Client side Include with synytax, example, Purpose of Include","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/12\/ng-include-AngularJS-Include-01.jpg","width":1200,"height":628,"caption":"ng-include - Client Side &amp; Server Side Include in AngularJS"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/ng-include-in-angularjs\/#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 ng include &#8211; 2 Best Ways to Include HTML Code in File"}]},{"@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\/46391","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=46391"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/46391\/revisions"}],"predecessor-version":[{"id":47201,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/46391\/revisions\/47201"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/46402"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=46391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=46391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=46391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}