{"id":39467,"date":"2022-11-01T11:10:41","date_gmt":"2023-03-22T00:07:55","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/"},"modified":"2024-04-28T22:27:15","modified_gmt":"2024-04-28T14:27:15","slug":"%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/","title":{"rendered":"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355"},"content":{"rendered":"<h1>\u7b80\u800c\u8a00\u4e4b<\/h1>\n<p>\u672c\u9875\u9762\u662f\u201c\u7528Angular\u5236\u4f5cHello, world\u201d\u7684\u83dc\u5355\u9875\u9762\u3002<\/p>\n<h2>\u83dc\u5355<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u521d\u7d1a\u7de8<\/ul>\n<\/li>\n<\/ul>\n<p>\u74b0\u5883\u6e96\u5099<br \/>\nComponent<br \/>\n\u30c6\u30ad\u30b9\u30c8\u88dc\u9593<br \/>\n\u5909\u6570\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<br \/>\n\u5165\u529b<br \/>\n\u30eb\u30fc\u30bf\u30fc<br \/>\nService<br \/>\nngModule<br \/>\n\u975e\u540c\u671f\u51e6\u7406<br \/>\nWeb API<br \/>\n\u30b9\u30bf\u30a4\u30eb<\/p>\n<p>\u4e2d\u7d1a\u7de8<\/p>\n<p>Component \u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb<br \/>\nDirective<br \/>\n\u5916\u90e8Module\u306e\u30b9\u30bf\u30a4\u30eb\u5909\u66f4<br \/>\n\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9<br \/>\nAngular Material<\/p>\n<p>\u4e0a\u7d1a\u7de8<\/p>\n<p>\u30b9\u30bf\u30a4\u30eb\u306e\u30b9\u30b3\u30fc\u30d7<br \/>\nModule<br \/>\nJIT\/AOT\u30b3\u30f3\u30d1\u30a4\u30eb<\/p>\n<p>API\u7de8<\/p>\n<p>(Angular \u306e API \u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u4e88\u5b9a)<\/p>\n<h1>\u9996\u5148<\/h1>\n<p>2000\u5e74\u4ee3\u521d\u671f\uff0c\u6211\u5728\u6211\u7684\u5b66\u751f\u65f6\u4ee3\u975e\u5e38\u4f9d\u8d56\u4e00\u4e2a\u540d\u4e3a&#8221;Java\u3067Hello, World&#8221;\u7684\u7f51\u7ad9\u3002<br \/>\n\u90a3\u662f\u4e00\u4e2a\u6559\u6388\u4ee5Java\u7684\u5404\u4e2aAPI\u4e3a\u4e3b\u9898\uff0c\u89e3\u91ca\u4e86\u5982\u4f55\u8f93\u51fa&#8221;Hello, World&#8221;\u7684\u5c0f\u7f51\u7ad9\u3002<br \/>\n\u53ef\u60dc\u7684\u662f\uff0c\u73b0\u5728\u90a3\u4e2a\u7f51\u7ad9\u5df2\u7ecf\u5173\u95ed\uff0c\u518d\u4e5f\u65e0\u6cd5\u770b\u5230\u4e86\u3002<\/p>\n<p>\u6700\u8fd1\uff0c\u6211\u7ecf\u5e38\u88ab\u4eba\u8be2\u95ee\u6709\u5173Angular\u5165\u95e8\u7f51\u7ad9\u7684\u95ee\u9898\u3002\u901a\u5e38\u6211\u4f1a\u63a8\u8350\u5b98\u65b9\u7f51\u7ad9\u4e0a\u7684\u6559\u7a0b\uff0c\u4f46\u662f\u6211\u89c9\u5f97\u5b9e\u9645\u5de5\u4f5c\u4e2d\u7684\u4f7f\u7528\u65b9\u6cd5\u4e0d\u592a\u5bb9\u6613\u4f20\u8fbe\uff0c\u800c\u4e14\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\u4e5f\u4e0d\u592a\u53cb\u597d\u3002\u4e8e\u662f\u6211\u51b3\u5b9a\u81ea\u5df1\u52a8\u624b\u5199\u4e00\u4e2a\u3002<\/p>\n<h1>\u73af\u5883<\/h1>\n<p>\u9664\u975e\u5404\u4e2a\u89e3\u91ca\u9875\u9762\u4e2d\u7279\u522b\u6807\u6ce8\uff0c\u5426\u5219\u6211\u4eec\u5c06\u4f7f\u7528\u4ee5\u4e0b\u73af\u5883\u3002<\/p>\n<p>\u64cd\u4f5c\u7cfb\u7edf\uff1aWindows10<br \/>\n\u786e\u8ba4\u6d4f\u89c8\u5668\uff1aChrome<br \/>\nNode.js\uff1a14.16.1<br \/>\nnpm\uff1a6.14.12\uff08Node.js\u5185\u7f6e\u7248\u672c\uff09<br \/>\nAngular\uff1av11.2.14<br \/>\n\u7f16\u8f91\u5668\uff1aVisual Studio Code<\/p>\n<h1>\u6574\u4f53\u6982\u89c8<\/h1>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5\uff1a\u521d\u7ea7\u7bc7\u3001\u4e2d\u7ea7\u7bc7\u548c\u9ad8\u7ea7\u7bc7\uff0c\u4ee5\u53caAPI\u7684\u89e3\u8bf4\u3002<br \/>\n\u521d\u7ea7\u7bc7\u5c06\u89e3\u91ca\u5728\u4f7f\u7528Angular\u521b\u5efa\u57fa\u672cWeb\u5e94\u7528\u7a0b\u5e8f\u65f6\u6240\u9700\u7684\u5185\u5bb9\u3002<br \/>\n\u4e2d\u7ea7\u7bc7\u5c06\u89e3\u91ca\u66f4\u52a0\u6df1\u5165\u7684\u5185\u5bb9\u3002\u6211\u8ba4\u4e3a\uff0c\u4e86\u89e3\u5230\u4e2d\u7ea7\u7bc7\u540e\uff0c\u60a8\u5c06\u4e0d\u518d\u5bf9\u4f7f\u7528Angular\u521b\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u611f\u5230\u56f0\u60d1\u3002<br \/>\n\u9ad8\u7ea7\u7bc7\u5c06\u89e3\u91ca\u4e00\u4e9b\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u5236\u4f5c\u5e76\u975e\u5fc5\u987b\u638c\u63e1\u7684\u5185\u5bb9\uff0c\u4f46\u76ee\u7684\u662f\u4e3a\u4e86\u52a0\u6df1\u5bf9Angular\u7684\u7406\u89e3\u3002<br \/>\n\u8bf7\u6ce8\u610f\uff0c\u6211\u5728\u64b0\u5199\u8fd9\u7bc7\u6587\u7ae0\u65f6\u8fd8\u672a\u5b8c\u6210\uff0c\u5e76\u4e14\u53ef\u80fd\u4f1a\u8fdb\u884c\u9879\u76ee\u6dfb\u52a0\u3001\u5220\u9664\u6216\u79fb\u52a8\uff0c\u8bf7\u7406\u89e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u800c\u8a00\u4e4b \u672c\u9875\u9762\u662f\u201c\u7528Angular\u5236\u4f5cHello, world\u201d\u7684\u83dc\u5355\u9875\u9762\u3002 \u83dc\u5355 \u521d\u7d1a\u7de8 \u74b0\u5883\u6e96\u5099 Com [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39467","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355 - Blog - Silicon Cloud<\/title>\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.silicloud.com\/zh\/blog\/\u7528angular\u521b\u5efa\u4e00\u4e2ahelloworld-\u83dc\u5355\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u800c\u8a00\u4e4b \u672c\u9875\u9762\u662f\u201c\u7528Angular\u5236\u4f5cHello, world\u201d\u7684\u83dc\u5355\u9875\u9762\u3002 \u83dc\u5355 \u521d\u7d1a\u7de8 \u74b0\u5883\u6e96\u5099 Com [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u7528angular\u521b\u5efa\u4e00\u4e2ahelloworld-\u83dc\u5355\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-22T00:07:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T14:27:15+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/\",\"name\":\"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-22T00:07:55+00:00\",\"dateModified\":\"2024-04-28T14:27:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u7528angular\u521b\u5efa\u4e00\u4e2ahelloworld-\u83dc\u5355\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355","og_description":"\u7b80\u800c\u8a00\u4e4b \u672c\u9875\u9762\u662f\u201c\u7528Angular\u5236\u4f5cHello, world\u201d\u7684\u83dc\u5355\u9875\u9762\u3002 \u83dc\u5355 \u521d\u7d1a\u7de8 \u74b0\u5883\u6e96\u5099 Com [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u7528angular\u521b\u5efa\u4e00\u4e2ahelloworld-\u83dc\u5355\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-22T00:07:55+00:00","article_modified_time":"2024-04-28T14:27:15+00:00","author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/","name":"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-22T00:07:55+00:00","dateModified":"2024-04-28T14:27:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u7528Angular\u521b\u5efa\u4e00\u4e2aHello,world\/\u83dc\u5355"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8angular%e5%88%9b%e5%bb%ba%e4%b8%80%e4%b8%aahelloworld-%e8%8f%9c%e5%8d%95%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39467","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=39467"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39467\/revisions"}],"predecessor-version":[{"id":61634,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/39467\/revisions\/61634"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=39467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=39467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=39467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}