{"id":3782,"date":"2015-04-30T12:15:40","date_gmt":"2015-04-30T09:15:40","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=3782"},"modified":"2017-12-19T16:52:50","modified_gmt":"2017-12-19T14:52:50","slug":"angular-js-data-binding-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/","title":{"rendered":"Angular.js Data Binding Example"},"content":{"rendered":"<p>Hey! Today we &#8216;ll see how we can easily update our angular views, using <a href=\"https:\/\/docs.angularjs.org\/api\/ng\/directive\/ngModel\" target=\"_blank\">ngModel<\/a>. To begin with, according to angular applications, data-binding is the automatic synchronization of data between the model and view components (for those that didn&#8217;t get this at all, please take a look over the <a href=\"http:\/\/www.tutorialspoint.com\/struts_2\/basic_mvc_architecture.htm\" target=\"_blank\">MVC pattern<\/a>).<\/p>\n<p>Regarding Angular&#8217;s implementation, the view is a projection of the model at all times. When the model changes, the view reflects the change, and vice versa.<\/p>\n<p>For the purpose either of a getting a better understanding of the fore-mentioned or the data-binding comparison between classical template systems and Angular&#8217;s, please refer to the <a href=\"https:\/\/docs.angularjs.org\/guide\/databinding\" target=\"_blank\">official documentation<\/a>.<br \/>\n[ulp id=&#8217;LXJcMJZXSsqGXYW8&#8242;]<\/p>\n<h2>1. Introduction<\/h2>\n<h3>1.1 The concept<\/h3>\n<p>Today&#8217;s concept will demonstrate the implementation of data-binding by displaying the user&#8217;s input into the View, according to the Model. Especially, there are two text fields, one that matches a user&#8217;s first name, while the second matches the last name and a greeting message, depending on the user&#8217;s input.<\/p>\n<h3>1.2 What you need to know<\/h3>\n<h4>1.2.1 Templates<\/h4>\n<p>In Angular, templates are written with HTML that contains Angular-specific elements and attributes. Angular combines the template with information from the model and controller to render the dynamic view that a user sees in the browser.<\/p>\n<p>These are the types of Angular elements and attributes you can use:<\/p>\n<ul>\n<li>Directive \u2014 An attribute or element that augments an existing DOM element or represents a reusable DOM component.<\/li>\n<li><b>Markup \u2014 The double curly brace notation {{ }} to bind expressions to elements is built-in Angular markup.<\/b><\/li>\n<li>Filter \u2014 Formats data for display.<\/li>\n<li>Form controls \u2014 Validates user input.<\/li>\n<\/ul>\n<p>For further details, according to angular templating, please refer to the <a href=\"https:\/\/docs.angularjs.org\/guide\/templates\" target=\"_blank\">official documentation<\/a>.<\/p>\n<h4>1.2.2 ngModel<\/h4>\n<p>The <code><a href=\"https:\/\/docs.angularjs.org\/api\/ng\/directive\/ngModel\" target=\"_blank\">ngModel<\/a><\/code> directive binds an input,select, textarea (or custom form control) to a property on the scope using NgModelController, which is created and exposed by this directive.<\/p>\n<p>ngModel has several responsibilities (you can read all of them in the <a href=\"https:\/\/docs.angularjs.org\/api\/ng\/directive\/ngModel\" target=\"_blank\">official documentation<\/a>, as well), but for the purpose of this example, the important one is the responsibility for binding the view into the model, which other directives such as input, textarea or select require.<\/p>\n<p><i>What is important to know, before diving into the source code of this example, is that <code>ngModel<\/code> will try to bind to the property given by evaluating the expression on the current scope. This means that if the property doesn&#8217;t already exist on this scope, it will be created implicitly and added to the scope.<\/i><\/p>\n<h2>2. The Example<\/h2>\n<p>One file is enough!<\/p>\n<p><u><code>index.html<\/code><\/u><\/p>\n<pre class=\"brush:xml; highlight:[2,13,17,21]\">\r\n&lt;!DOCTYPE html&gt;\r\n&lt;html ng-app&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=\"utf-8\"&gt;\r\n    &lt;title&gt;Angular.js Data Binding Example&lt;\/title&gt;\r\n    &lt;script src=\"\/\/cdnjs.cloudflare.com\/ajax\/libs\/angular.js\/1.3.15\/angular.min.js\"&gt;&lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;h2&gt;Angular.js Data Binding Example&lt;\/h2&gt;\r\n\t&lt;table&gt;\r\n\t  &lt;tr&gt;\r\n\t\t&lt;td&gt;First name:&lt;\/td&gt;\r\n\t\t&lt;td&gt;&lt;input ng-model=\"firstName\" type=\"text\"\/&gt;&lt;\/td&gt;\r\n\t  &lt;\/tr&gt;\r\n      &lt;tr&gt;\r\n\t\t&lt;td&gt;Last name:&lt;\/td&gt;\r\n\t\t&lt;td&gt;&lt;input ng-model=\"lastName\" type=\"text\"\/&gt;&lt;\/td&gt;\r\n\t  &lt;\/tr&gt;\r\n    &lt;\/table&gt;\r\n\t&lt;br\/&gt;\r\n    Hello {{firstName}} {{lastName}}\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>First of all, we obviously have to define that this is about an angular application (line 2). Secondly, we build our table view, according to our needs: two rows (first and last name), each one with two columns (the corresponding text field for first and last name). Finally, we display our message in line 21.<\/p>\n<p>The whole process is based on the assignable variables to the <code>ng-model<\/code>. That is, this works as a nested angular controller, binding data to our view. This kind of data can be accessed\/displayed using the curly brackets angular templating markup.<\/p>\n<p><i>Generally, HTML&#8217;s <code>input<\/code> tag, when used together with <code>ng-model<\/code>, provides data-binding, input state control, and validation.<\/i><\/p>\n<h2>3. Demo<\/h2>\n<p>Firstly, please take a look at <a href=\"http:\/\/thodorisbais.blogspot.gr\/2015\/03\/how-to-solve-failed-to-execute-send-on.html\" target=\"_blank\">this post<\/a>, just to understand why you should deploy this app in a local server rather than just executing it in a browser.<\/p>\n<p>Access the web app from your local server:<\/p>\n<figure id=\"attachment_3811\" aria-describedby=\"caption-attachment-3811\" style=\"width: 402px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/initial.png\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/initial.png\" alt=\"Figure 1. Application&#039;s initial state\" width=\"402\" height=\"240\" class=\"size-full wp-image-3811\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/initial.png 402w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/initial-300x179.png 300w\" sizes=\"(max-width: 402px) 100vw, 402px\" \/><\/a><figcaption id=\"caption-attachment-3811\" class=\"wp-caption-text\">Figure 1. Application&#8217;s initial state<\/figcaption><\/figure>\n<p>Now, let&#8217;s insert some values:<\/p>\n<figure id=\"attachment_3812\" aria-describedby=\"caption-attachment-3812\" style=\"width: 413px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/updated.png\"><img decoding=\"async\" src=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/updated.png\" alt=\"Figure 2. Inserting sample data\" width=\"413\" height=\"230\" class=\"size-full wp-image-3812\" srcset=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/updated.png 413w, https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/updated-300x167.png 300w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><\/a><figcaption id=\"caption-attachment-3812\" class=\"wp-caption-text\">Figure 2. Inserting sample data<\/figcaption><\/figure>\n<p>Hooray, it&#8217;s giving feedback!<\/p>\n<h2>4. Download<\/h2>\n<p>This was an example of Angular.js Data Binding.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>You can download the full source code of this example here : <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/angularjs_data_binding.zip\"><strong>angularjs_data_binding.zip<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hey! Today we &#8216;ll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the automatic synchronization of data between the model and view components (for those that didn&#8217;t get this at all, please take a look over the MVC pattern). Regarding Angular&#8217;s implementation, the &hellip;<\/p>\n","protected":false},"author":63,"featured_media":909,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-3782","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.js Data Binding Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Hey! Today we &#039;ll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the\" \/>\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-js-data-binding-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Angular.js Data Binding Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Hey! Today we &#039;ll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-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\/toubou.techblog\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-30T09:15:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-19T14:52:50+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=\"Thodoris Bais\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ThodorisBais\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thodoris Bais\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 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-js-data-binding-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/\"},\"author\":{\"name\":\"Thodoris Bais\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/f622d6017801d9aa8131e1ae69bbdd0d\"},\"headline\":\"Angular.js Data Binding Example\",\"datePublished\":\"2015-04-30T09:15:40+00:00\",\"dateModified\":\"2017-12-19T14:52:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/\"},\"wordCount\":623,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-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-js-data-binding-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/\",\"name\":\"Angular.js Data Binding Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg\",\"datePublished\":\"2015-04-30T09:15:40+00:00\",\"dateModified\":\"2017-12-19T14:52:50+00:00\",\"description\":\"Hey! Today we 'll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-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-js-data-binding-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.js Data Binding 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\/f622d6017801d9aa8131e1ae69bbdd0d\",\"name\":\"Thodoris Bais\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dc31ee119255c1e4aa4a4f34858284d907cce53d033584d86b0e3de46db7d0ff?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dc31ee119255c1e4aa4a4f34858284d907cce53d033584d86b0e3de46db7d0ff?s=96&d=mm&r=g\",\"caption\":\"Thodoris Bais\"},\"description\":\"Thodoris is an Oracle Certified Associate Java Programmer and currently works as a Junior Software Developer, for Intrasoft International S.A. He holds a diploma at Informatics &amp; Telecommunications Engineering and is interested in continuous development.\",\"sameAs\":[\"http:\/\/thodorisbais.blogspot.com\",\"https:\/\/www.facebook.com\/toubou.techblog\/\",\"https:\/\/instagram.com\/thodoris.bais\/\",\"https:\/\/www.linkedin.com\/pub\/thodoris-bais\/69\/6b7\/408\",\"https:\/\/x.com\/@ThodorisBais\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/thodoris-bais\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Angular.js Data Binding Example - Web Code Geeks - 2026","description":"Hey! Today we 'll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the","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-js-data-binding-example\/","og_locale":"en_US","og_type":"article","og_title":"Angular.js Data Binding Example - Web Code Geeks - 2026","og_description":"Hey! Today we 'll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/toubou.techblog\/","article_published_time":"2015-04-30T09:15:40+00:00","article_modified_time":"2017-12-19T14:52:50+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":"Thodoris Bais","twitter_card":"summary_large_image","twitter_creator":"@ThodorisBais","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Thodoris Bais","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/"},"author":{"name":"Thodoris Bais","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/f622d6017801d9aa8131e1ae69bbdd0d"},"headline":"Angular.js Data Binding Example","datePublished":"2015-04-30T09:15:40+00:00","dateModified":"2017-12-19T14:52:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/"},"wordCount":623,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-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-js-data-binding-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/","name":"Angular.js Data Binding Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/angularjs-logo.jpg","datePublished":"2015-04-30T09:15:40+00:00","dateModified":"2017-12-19T14:52:50+00:00","description":"Hey! Today we 'll see how we can easily update our angular views, using ngModel. To begin with, according to angular applications, data-binding is the","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/angular-js\/angular-js-data-binding-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-js-data-binding-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.js Data Binding 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\/f622d6017801d9aa8131e1ae69bbdd0d","name":"Thodoris Bais","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/dc31ee119255c1e4aa4a4f34858284d907cce53d033584d86b0e3de46db7d0ff?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dc31ee119255c1e4aa4a4f34858284d907cce53d033584d86b0e3de46db7d0ff?s=96&d=mm&r=g","caption":"Thodoris Bais"},"description":"Thodoris is an Oracle Certified Associate Java Programmer and currently works as a Junior Software Developer, for Intrasoft International S.A. He holds a diploma at Informatics &amp; Telecommunications Engineering and is interested in continuous development.","sameAs":["http:\/\/thodorisbais.blogspot.com","https:\/\/www.facebook.com\/toubou.techblog\/","https:\/\/instagram.com\/thodoris.bais\/","https:\/\/www.linkedin.com\/pub\/thodoris-bais\/69\/6b7\/408","https:\/\/x.com\/@ThodorisBais"],"url":"https:\/\/www.webcodegeeks.com\/author\/thodoris-bais\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/3782","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\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=3782"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/3782\/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=3782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=3782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=3782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}