{"id":246,"date":"2023-04-07T21:22:21","date_gmt":"2023-04-07T13:22:21","guid":{"rendered":"https:\/\/www.tysql.com\/?p=246"},"modified":"2023-04-07T21:22:21","modified_gmt":"2023-04-07T13:22:21","slug":"angular%e5%ad%a6%e4%b9%a0%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.tysql.com\/index.php\/2023\/04\/07\/angular%e5%ad%a6%e4%b9%a0%e8%ae%b0%e5%bd%95\/","title":{"rendered":"Angular\u5b66\u4e60\u8bb0\u5f55"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;apl&quot;,&quot;mime&quot;:&quot;text\/apl&quot;,&quot;theme&quot;:&quot;darcula&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;APL&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;apl&quot;}\">\/\/ \u5b89\u88c5\u811a\u624b\u67b6\nnpm install -g angular-cli\n\/\/ \u65b0\u5efaAngualr\u9879\u76ee\nng new angualrDemo --skip-install\n\u6ce8:\u5982\u679c\u6309\u7167\u5b98\u7f51\u7684\u6559\u7a0b\u53ea\u7528\u8f93\u5165 ng new \u9879\u76ee\u540d \u5373\u53ef,\u4f46\u662f\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5b83\u4f1a\u9ed8\u8ba4\u4f7f\u7528npm\u5e2e\u6211\u4eec\u521b\u5efa\u9879\u76ee\u5e76\u4e14\u5b89\u88c5\u5404\u79cd\u4f9d\u8d56,\u975e\u5e38\u8017\u65f6\u95f4,\u6240\u4ee5\u6211\u4eec\u540e\u9762\u52a0\u4e0a-- skip-install\u8df3\u8fc7\u5b89\u88c5\u4f9d\u8d56\u7684\u8fc7\u7a0b.\n\u542f\u52a8\u9879\u76ee\nng serve \u9ed8\u8ba4\u542f\u52a8\u5728\u7aef\u53e34200\nng serve \u2013 open,\u542f\u52a8\u5e76\u6253\u5f00\u6d4f\u89c8\u5668\nng serve --port \u7aef\u53e3\n\/\/ \u7ec8\u7ed3<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-qianduan"],"_links":{"self":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":1,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"predecessor-version":[{"id":247,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/posts\/246\/revisions\/247"}],"wp:attachment":[{"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tysql.com\/index.php\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}