{"id":2149,"date":"2016-10-26T17:21:07","date_gmt":"2016-10-26T08:21:07","guid":{"rendered":"http:\/\/hangunsworld.com\/blog\/?p=2149"},"modified":"2016-10-26T17:25:42","modified_gmt":"2016-10-26T08:25:42","slug":"%ed%81%ac%eb%a1%ac%ec%97%90%ec%84%9c-cjs%eb%a1%9c-angularjs-%eb%94%94%eb%b2%84%ea%b9%85%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/hangunsworld.com\/blog\/2149","title":{"rendered":"\ud06c\ub86c\uc5d0\uc11c cjs\ub85c AngularJS \ub514\ubc84\uae45\ud558\uae30"},"content":{"rendered":"<p>AngularJS\ub294 \ubcc0\uc218\ub098 \ud568\uc218\ub4e4\uc774 \uc678\ubd80\ub85c \ub178\ucd9c\ub418\uc9c0 \uc54a\uc544 \ub514\ubc84\uae45 \ud558\uae30 \uc5b4\ub824\uc6b4 \uc810\uc774 \uc788\uc8e0.<br \/>\n\uadf8\ub798\uc11c \uc774\uac83\uc800\uac83 \uc2dc\ud5d8\ud574 \ubcf4\ub2e4 \ucc3e\uc544\ub0b8 \ud06c\ub86c \ube0c\ub77c\uc6b0\uc800\uc758 \ud655\uc7a5 \ud504\ub85c\uadf8\ub7a8 Custom JavaScript for websites\uc744 \uc0ac\uc6a9\ud558\uba74 \ub9e4\uc6b0 \ud3b8\ud569\ub2c8\ub2e4.<\/p>\n<p><a href=\"https:\/\/chrome.google.com\/webstore\/detail\/custom-javascript-for-web\/poakhlngfciodnhlhhgnaaelnpjljija?utm_source=chrome-app-launcher-info-dialog\">Custom JavaScript for websites (\ud06c\ub86c \uc6f9\uc2a4\ud1a0\uc5b4)<\/a><\/p>\n<p>\uc0ac\uc6a9\ubc95\uc740 \uac04\ub2e8\ud569\ub2c8\ub2e4. \uc801\uc6a9\ud560 \uc0ac\uc774\ud2b8\ub85c \uc774\ub3d9\ud574\uc11c cjs\ub97c \uc2e4\ud589\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \ud654\uba74\uc774 \ub098\uc624\ub294\ub370, \uc5ec\uae30\uc5d0 \uc6d0\ud558\ub294 \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uace0 \uc800\uc7a5\ud574 \uc8fc\uc138\uc694. \uadf8\ub7ec\uba74 \ud574\ub2f9 \uc0ac\uc774\ud2b8\uc758 \ud398\uc774\uc9c0\ub97c \uc5f4 \ub54c\ub9c8\ub2e4 \uc785\ub825\ud55c \uc2a4\ud06c\ub9bd\ud2b8\uac00 \uc790\ub3d9\uc73c\ub85c \uc2e4\ud589\ub429\ub2c8\ub2e4.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/2016\/10\/cjs.gif\" alt=\"cjs\" width=\"637\" height=\"641\" class=\"alignnone size-full wp-image-2150\" \/><\/p>\n<p>\uc5ec\uae30\uc5d0 <a href=\"http:\/\/hangunsworld.com\/blog\/2137\">\ucf58\uc194\uc5d0\uc11c AngularJS\uc758 \uc2a4\ucf54\ud504, \uc11c\ube44\uc2a4 \ub4f1 \uc811\uadfc\ud558\uae30<\/a> \uae00\uc5d0\uc11c \uc0ac\uc6a9\ud55c \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uba74, \ube0c\ub77c\uc6b0\uc800\uc758 \ucf58\uc194\uc5d0\uc11c $scope.myProperty \ub77c\ub358\uac00 $scope.myFunction() \uac19\uc774 \uc2a4\ucf54\ud504\ub098 \uc11c\ube44\uc2a4 \uac1d\uccb4\uc5d0 \uc811\uadfc\uc774 \uac00\ub2a5\ud569\ub2c8\ub2e4.<\/p>\n<p>\ucf54\ub4dc \ubcf5\uc0ac\ud574\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ucd94\uac00\ud574 \ub193\uc544\uc694.<\/p>\n<pre lang=\"javascript\" line=\"1\">function angularScope(){\r\n    try{\r\n        $scope = angular.element(document.body).scope();\r\n        injector = angular.element(document.body).injector();\r\n        $window = injector.get(\"$window\");\r\n        $timeout = injector.get(\"$timeout\");\r\n        $http = injector.get(\"$http\");\r\n        $location = injector.get(\"$location\");\r\n        myService = injector.get(\"myService\");\r\n    }catch(e){}\r\n}\r\n\r\nsetTimeout(angularScope, 1000);<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>AngularJS\ub294 \ubcc0\uc218\ub098 \ud568\uc218\ub4e4\uc774 \uc678\ubd80\ub85c \ub178\ucd9c\ub418\uc9c0 \uc54a\uc544 \ub514\ubc84\uae45 \ud558\uae30 \uc5b4\ub824\uc6b4 \uc810\uc774 \uc788\uc8e0. \uadf8\ub798\uc11c \uc774\uac83\uc800\uac83 \uc2dc\ud5d8\ud574 \ubcf4\ub2e4 \ucc3e\uc544\ub0b8 \ud06c\ub86c \ube0c\ub77c\uc6b0\uc800\uc758 \ud655\uc7a5 \ud504\ub85c\uadf8\ub7a8 Custom JavaScript for websites\uc744 \uc0ac\uc6a9\ud558\uba74 \ub9e4\uc6b0 \ud3b8\ud569\ub2c8\ub2e4. Custom JavaScript for websites (\ud06c\ub86c \uc6f9\uc2a4\ud1a0\uc5b4) \uc0ac\uc6a9\ubc95\uc740 \uac04\ub2e8\ud569\ub2c8\ub2e4. \uc801\uc6a9\ud560 \uc0ac\uc774\ud2b8\ub85c \uc774\ub3d9\ud574\uc11c cjs\ub97c \uc2e4\ud589\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \ud654\uba74\uc774 \ub098\uc624\ub294\ub370, \uc5ec\uae30\uc5d0 \uc6d0\ud558\ub294 \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uace0 \uc800\uc7a5\ud574 \uc8fc\uc138\uc694. \uadf8\ub7ec\uba74 \ud574\ub2f9 \uc0ac\uc774\ud2b8\uc758 \ud398\uc774\uc9c0\ub97c \uc5f4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[574,346,576,575,577],"class_list":["post-2149","post","type-post","status-publish","format-standard","hentry","category-javascript","tag-angularjs","tag-chrome","tag-cjs","tag-console","tag-custom-javascript-for-websites"],"_links":{"self":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/posts\/2149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/comments?post=2149"}],"version-history":[{"count":0,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/posts\/2149\/revisions"}],"wp:attachment":[{"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/media?parent=2149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/categories?post=2149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hangunsworld.com\/blog\/wp-json\/wp\/v2\/tags?post=2149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}