{"id":19034,"date":"2017-10-27T12:15:27","date_gmt":"2017-10-27T09:15:27","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=19034"},"modified":"2017-10-26T11:47:20","modified_gmt":"2017-10-26T08:47:20","slug":"angular-4-component-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/","title":{"rendered":"Angular 4: Component Example"},"content":{"rendered":"<p>Welcome to the new concept of components in angular 4.<\/p>\n<p><strong>Definition<\/strong>: component is a angular class , Components are the most basic building block of an UI in an Angular application. An Angular application is a tree of Angular components.<\/p>\n<p>Components always have a template and only one component can be instantiated per an element in a template.<br \/>\nA component must belong to an NgModule in order for it to be usable by another component or application. To specify that a component is a member of an NgModule, you should list it in the declarations field of that NgModule In app.module file.<\/p>\n<p><strong><u>Component:<\/u><\/strong><\/p>\n<p>First We need to import the angular Component from the Angular package: <a href=\"https:\/\/www.npmjs.com\/package\/@angular\/core\">@angular\/core<\/a><\/p>\n<pre class=\"brush:bash\">import {\u00a0Component\u00a0} from\u00a0\u2018@angular\/core\u2019;<\/pre>\n<p>we will use this component with the component decorator @component<\/p>\n<p>component decorator must have the selector and template.<\/p>\n<p><strong>Selector<\/strong> : css selector that identifies this component in a template. means we can use the html templates with selector in the application.<\/p>\n<pre class=\"brush:bash\">selector: \u2018app\u2019,<\/pre>\n<p><strong>Template<\/strong>: \u00a0inline-defined template for the view. Means it\u2019s the html code, we can write html code in the template, or we can directly give the html src by giving the template url.<\/p>\n<pre class=\"brush:bash\">template: `{{title}}`,<\/pre>\n<p><strong>TemplateUrl<\/strong>: \u00a0Template url is the external file containing a html template for the view.<\/p>\n<pre class=\"brush:bash\">templateUrl: \u2018.\/app.component.html\u2019<\/pre>\n<p>Same as styles: css styles we can add two ways by adding styles, styleUrls.<\/p>\n<p><strong>Style: <\/strong>nline-defined styles to be applied to this component\u2019s view<\/p>\n<pre class=\"brush:bash\">styles: [\u2018h1 { font-weight: normal; }\u2019]<\/pre>\n<p><strong>styleUrls<\/strong>: list of urls to stylesheets to be applied to this component\u2019s view. If we have multiple styles we can add by the external css files.<\/p>\n<pre class=\"brush:bash\">styleUrls: [\u2018.\/app.component.css ]<\/pre>\n<p><strong>Component Structure:<\/strong><\/p>\n<pre class=\"brush:java\">import {\u00a0<a href=\"https:\/\/angular.io\/api\/core\/Component\">Component<\/a>\u00a0} from\u00a0<a href=\"https:\/\/angular.io\/api\/core\">\u2018@angular\/core\u2019<\/a>;\r\n@<a href=\"https:\/\/angular.io\/api\/core\/Component\">Component<\/a>({\r\nselector: \u2018app\u2019,\r\ntemplate: \u2018Hello &lt;h4&gt;{{title}}&lt;\/h4&gt;!\u2019,\r\n\r\nstyles: [\u2018h4 { font-weight: normal; }\u2019]\r\n})\r\nexport class welcome {\u00a0 \u00a0 title: string = \u2018World\u2019;\u00a0 \u00a0 \u00a0}<\/pre>\n<p><strong>Module:<\/strong><\/p>\n<p>Every Angular app has at least one NgModule class,\u00a0<a href=\"https:\/\/angular.io\/guide\/bootstrapping\">the\u00a0<em>root module<\/em><\/a>, conventionally named\u00a0AppModule lar apps are modular and Angular has its own modularity system called\u00a0<em>NgModules<\/em>. We will add the components in the declarations of this module file.<\/p>\n<p>Import statement\u00a0 for the module:<\/p>\n<pre class=\"brush:bash\">import { NgModule\u00a0} from\u00a0<a href=\"https:\/\/angular.io\/api\/core\">\u2018@angular\/core\u2019<\/a>;<\/pre>\n<p><a href=\"https:\/\/angular.io\/api\/core\/NgModule\">NgModule<\/a>\u00a0is a decorator to use the ng module.<\/p>\n<p>most important properties are:<\/p>\n<ul>\n<li><strong>declarations<\/strong>\u2013 the\u00a0<em>view classes<\/em>\u00a0that belong to this module. Angular has three kinds of view classes:\u00a0<a href=\"https:\/\/angular.io\/guide\/architecture#components\">components<\/a>,\u00a0<a href=\"https:\/\/angular.io\/guide\/architecture#directives\">directives<\/a>, and\u00a0<a href=\"https:\/\/angular.io\/guide\/pipes\">pipes<\/a>.<\/li>\n<li><strong>exports<\/strong>\u2013 the subset of declarations that should be visible and usable in the component\u00a0<a href=\"https:\/\/angular.io\/guide\/architecture#templates\">templates<\/a>\u00a0of other modules.<\/li>\n<li><strong>imports<\/strong>\u2013 other modules whose exported classes are needed by component templates declared in\u00a0<em>this <\/em><\/li>\n<li><strong>providers<\/strong>\u2013 creators of\u00a0<a href=\"https:\/\/angular.io\/guide\/architecture#services\">services<\/a>\u00a0that this module contributes to the global collection of services; they become accessible in all parts of the app.<\/li>\n<\/ul>\n<p><strong>bootstrap\u00a0<\/strong>\u2013 the main application view, called the\u00a0<em>root component<\/em>, that hosts all other app views. Only the\u00a0<em>root module<\/em>\u00a0should set this\u00a0bootstrap\u00a0property.<\/p>\n<p><strong>Module \u00a0Structure:<\/strong><\/p>\n<pre class=\"brush:java\">import { <a href=\"https:\/\/angular.io\/api\/core\/NgModule\">NgModule<\/a> } from \u2018@angular\/core\u2019;\r\nimport { <a href=\"https:\/\/angular.io\/api\/platform-browser\/BrowserModule\">BrowserModule<\/a> } from \u2018@angular\/platform-<a href=\"https:\/\/angular.io\/api\/animations\/browser\">browser<\/a>\u2018;\r\n@<a href=\"https:\/\/angular.io\/api\/core\/NgModule\">NgModule<\/a>({\r\nimports: [ <a href=\"https:\/\/angular.io\/api\/platform-browser\/BrowserModule\">BrowserModule<\/a> ],\r\nproviders: [ Logger ],\r\ndeclarations: [ AppComponent ],\r\nexports: [ AppComponent ],\r\nbootstrap: [ AppComponent ]\r\n\r\n})\r\nexport class AppModule { }<\/pre>\n<p>The module declares some objects to be public by marking them with the\u00a0export\u00a0key word.<\/p>\n<p><strong>Main.ts:<\/strong><\/p>\n<p>Launch an application by\u00a0<em>bootstrapping<\/em>\u00a0its root module. During development you\u2019re likely to bootstrap the\u00a0AppModule\u00a0in a\u00a0main.ts\u00a0file like this one<\/p>\n<pre class=\"brush:java\">import { <a href=\"https:\/\/angular.io\/api\/platform-browser-dynamic\/platformBrowserDynamic\">platformBrowserDynamic<\/a> } from \u2018@angular\/platform-<a href=\"https:\/\/angular.io\/api\/animations\/browser\">browser<\/a>-dynamic\u2019;\r\nimport { AppModule } from \u2018.\/app\/app.module\u2019;\r\n<a href=\"https:&lt;\/code&gt;\/\/angular.io\/api\/platform-browser-dynamic\/platformBrowserDynamic\">platformBrowserDynamic<\/a>().bootstrapModule(AppModule);<\/pre>\n<p>Source code present in the Github<\/p>\n<p><a href=\"https:\/\/github.com\/Sathishchary\/angular-app\/\">https:\/\/github.com\/Sathishchary\/angular-app\/\u00a0<\/a><\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Web Code Geeks with permission by Ramesh Kotha, partner at our <a href=\"http:\/\/www.webcodegeeks.com\/join-us\/wcg\/\" target=\"_blank\" rel=\"noopener\">WCG program<\/a>. See the original article here: <a href=\"https:\/\/java2practice.com\/2017\/10\/26\/angular-4-component-example\/\" target=\"_blank\" rel=\"noopener\">Angular 4: Component Example<\/a><\/p>\n<p>Opinions expressed by Web Code Geeks contributors are their own.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the new concept of components in angular 4. Definition: component is a angular class , Components are the most basic building block of an UI in an Angular application. An Angular application is a tree of Angular components. Components always have a template and only one component can be instantiated per an element &hellip;<\/p>\n","protected":false},"author":1516,"featured_media":909,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-19034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-angular-js"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Angular 4: Component Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Welcome to the new concept of components in angular 4. Definition: component is a angular class , Components are the most basic building block of an UI in\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Angular 4: Component Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Welcome to the new concept of components in angular 4. Definition: component is a angular class , Components are the most basic building block of an UI in\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/Kotha.Ramesh\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-27T09:15:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ramesh Kotha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rameshchary\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ramesh Kotha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/\"},\"author\":{\"name\":\"Ramesh Kotha\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/ad5479e29af7e3c3a3295a5ff859221d\"},\"headline\":\"Angular 4: Component Example\",\"datePublished\":\"2017-10-27T09:15:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/\"},\"wordCount\":507,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg\",\"articleSection\":[\"Angular.js\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/\",\"name\":\"Angular 4: Component Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg\",\"datePublished\":\"2017-10-27T09:15:27+00:00\",\"description\":\"Welcome to the new concept of components in angular 4. Definition: component is a angular class , Components are the most basic building block of an UI in\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Angular.js\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/angular-js\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Angular 4: Component Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/ad5479e29af7e3c3a3295a5ff859221d\",\"name\":\"Ramesh Kotha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7fb4cc19e57a57b2663f160acad270a3831bf7235310c5536163c89114eeb479?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7fb4cc19e57a57b2663f160acad270a3831bf7235310c5536163c89114eeb479?s=96&d=mm&r=g\",\"caption\":\"Ramesh Kotha\"},\"description\":\"Ramesh is a certified Java professional working in financial domain, He is an application developer and has hands on practice with Java and related technologies. He is passionate about Spring and other open source technologies.\",\"sameAs\":[\"http:\/\/java2practice.com\/\",\"https:\/\/www.facebook.com\/Kotha.Ramesh\",\"http:\/\/www.linkedin.com\/in\/rameshadayana\",\"https:\/\/x.com\/rameshchary\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/ramesh-kotha\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Angular 4: Component Example - Web Code Geeks - 2026","description":"Welcome to the new concept of components in angular 4. Definition: component is a angular class , Components are the most basic building block of an UI in","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:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/","og_locale":"en_US","og_type":"article","og_title":"Angular 4: Component Example - Web Code Geeks - 2026","og_description":"Welcome to the new concept of components in angular 4. Definition: component is a angular class , Components are the most basic building block of an UI in","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/Kotha.Ramesh","article_published_time":"2017-10-27T09:15:27+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg","type":"image\/jpeg"}],"author":"Ramesh Kotha","twitter_card":"summary_large_image","twitter_creator":"@rameshchary","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Ramesh Kotha","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/"},"author":{"name":"Ramesh Kotha","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/ad5479e29af7e3c3a3295a5ff859221d"},"headline":"Angular 4: Component Example","datePublished":"2017-10-27T09:15:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/"},"wordCount":507,"commentCount":1,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg","articleSection":["Angular.js"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/","name":"Angular 4: Component Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg","datePublished":"2017-10-27T09:15:27+00:00","description":"Welcome to the new concept of components in angular 4. Definition: component is a angular class , Components are the most basic building block of an UI in","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-4-component-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"Angular.js","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/angular-js\/"},{"@type":"ListItem","position":4,"name":"Angular 4: Component Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/ad5479e29af7e3c3a3295a5ff859221d","name":"Ramesh Kotha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7fb4cc19e57a57b2663f160acad270a3831bf7235310c5536163c89114eeb479?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7fb4cc19e57a57b2663f160acad270a3831bf7235310c5536163c89114eeb479?s=96&d=mm&r=g","caption":"Ramesh Kotha"},"description":"Ramesh is a certified Java professional working in financial domain, He is an application developer and has hands on practice with Java and related technologies. He is passionate about Spring and other open source technologies.","sameAs":["http:\/\/java2practice.com\/","https:\/\/www.facebook.com\/Kotha.Ramesh","http:\/\/www.linkedin.com\/in\/rameshadayana","https:\/\/x.com\/rameshchary"],"url":"https:\/\/www.webcodegeeks.com\/author\/ramesh-kotha\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/19034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/1516"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=19034"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/19034\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/909"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=19034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=19034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=19034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}