{"id":208,"date":"2017-03-22T11:54:23","date_gmt":"2017-03-22T11:54:23","guid":{"rendered":"http:\/\/codeinsightacademy.com\/blog\/?p=208"},"modified":"2017-05-12T05:24:17","modified_gmt":"2017-05-12T05:24:17","slug":"modules","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/angular-js\/modules\/","title":{"rendered":"Modules"},"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=\"myApp\" ng-controller=\"myCtrl\"&gt;\r\n        &lt;fieldset&gt;\r\n            &lt;legend&gt;\r\n                Modules\r\n            &lt;\/legend&gt;\r\n            &lt;div&gt;\r\n                Radius = {{radius}} &lt;br\/&gt;\r\n                Diameter = {{diameter}} &lt;br\/&gt;\r\n                Area = {{area}} &lt;br\/&gt;\r\n                Circumference = {{circumference| number:2}} &lt;br\/&gt;\r\n            &lt;\/div&gt;\r\n        &lt;\/fieldset&gt;\r\n    &lt;\/body&gt;\r\n    &lt;script&gt;\r\n        var app = angular.module(\"myApp\", []);\r\n\r\n        app.controller(\"myCtrl\", function ($scope) {\r\n            $scope.radius = 5;\r\n            $scope.diameter = $scope.radius * 2;\r\n            $scope.area = 3.14 * $scope.radius * $scope.radius;\r\n            $scope.circumference = 2 * 3.14 * $scope.radius;\r\n        });\r\n    &lt;\/script&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;myApp&#8221; ng-controller=&#8221;myCtrl&#8221;&gt; &lt;fieldset&gt; &lt;legend&gt; Modules &lt;\/legend&gt; &lt;div&gt; Radius = {{radius}} &lt;br\/&gt; Diameter = {{diameter}} &lt;br\/&gt; Area = {{area}} &lt;br\/&gt; Circumference = {{circumference| number:2}} &lt;br\/&gt; &lt;\/div&gt; &lt;\/fieldset&gt; &lt;\/body&gt; &lt;script&gt; var app = angular.module(&#8220;myApp&#8221;, []); app.controller(&#8220;myCtrl&#8221;, function ($scope) { $scope.radius = 5; $scope.diameter = $scope.radius * [&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\/208"}],"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=208"}],"version-history":[{"count":2,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"predecessor-version":[{"id":261,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/208\/revisions\/261"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}