{"id":205,"date":"2017-03-22T11:53:06","date_gmt":"2017-03-22T11:53:06","guid":{"rendered":"http:\/\/codeinsightacademy.com\/blog\/?p=205"},"modified":"2017-05-13T05:24:27","modified_gmt":"2017-05-13T05:24:27","slug":"angular-expression","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/angular-js\/angular-expression\/","title":{"rendered":"Angular Expression"},"content":{"rendered":"<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"html\">&lt;DOCTYPE html&gt;\r\n&lt;html&gt;\r\n    &lt;head&gt;\r\n        &lt;meta CHARSET=\"UTF-8\"&gt;\r\n        &lt;script src=\"http:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.4.8\/angular.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body ng-app=\"\"&gt;\r\n        &lt;fieldset&gt;\r\n            &lt;legend&gt;\r\n                Angular Expression\r\n            &lt;\/legend&gt;\r\n            &lt;div&gt;\r\n                Square of 5 is {{5 * 5}}\r\n            &lt;\/div&gt;\r\n        &lt;\/fieldset&gt;\r\n        &lt;fieldset&gt;\r\n            &lt;legend&gt;\r\n                Addition of x and y\r\n            &lt;\/legend&gt;\r\n            &lt;div ng-init=\"x = 5;y = 6\"&gt;\r\n                {{x + ' + ' + y}} = {{x + y}}\r\n            &lt;\/div&gt;\r\n        &lt;\/fieldset&gt;\r\n        &lt;fieldset&gt;\r\n            &lt;legend&gt;\r\n                Concatenation\r\n            &lt;\/legend&gt;\r\n            &lt;div ng-init=\"first_name = 'Shailesh'; last_name = 'Sonare'\"&gt;\r\n                {{first_name + \" \" + last_name}}\r\n            &lt;\/div&gt;\r\n        &lt;\/fieldset&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &lt;DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta CHARSET=&#8221;UTF-8&#8243;&gt; &lt;script src=&#8221;http:\/\/ajax.googleapis.com\/ajax\/libs\/angularjs\/1.4.8\/angular.min.js&#8221;&gt;&lt;\/script&gt; &lt;\/head&gt; &lt;body ng-app=&#8221;&#8221;&gt; &lt;fieldset&gt; &lt;legend&gt; Angular Expression &lt;\/legend&gt; &lt;div&gt; Square of 5 is {{5 * 5}} &lt;\/div&gt; &lt;\/fieldset&gt; &lt;fieldset&gt; &lt;legend&gt; Addition of x and y &lt;\/legend&gt; &lt;div ng-init=&#8221;x = 5;y = 6&#8243;&gt; {{x + &#8216; + &#8216; + y}} = {{x + y}} &lt;\/div&gt; &lt;\/fieldset&gt; &lt;fieldset&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"quote","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/205"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":3,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"predecessor-version":[{"id":284,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions\/284"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}