{"id":2952,"date":"2017-12-25T16:29:45","date_gmt":"2017-12-25T08:29:45","guid":{"rendered":"http:\/\/www.daliane.com\/?p=2952"},"modified":"2018-01-04T18:30:02","modified_gmt":"2018-01-04T10:30:02","slug":"angular4_jian_yao_ru_men","status":"publish","type":"post","link":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/angular4_jian_yao_ru_men\/","title":{"rendered":"angular4\u7b80\u8981\u5165\u95e8"},"content":{"rendered":"<h1>\n\t<b>angular4<\/b><b>\u7b80\u8981\u5165\u95e8<\/b><br \/>\n<\/h1>\n<p style=\"font-size:22px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<strong><\/strong>\n<\/p>\n<p style=\"font-size:22px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'Songti SC';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:14px;font-family:'Songti SC';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:14px;font-family:'Songti SC';color:#333333;background-color:#FFFFFF;\">\n\t&nbsp;angular4\u662fangular\u53d1\u5e03\u76844.0\u6b63\u5f0f\u7248\u3002\u201c\u672a\u89c9\u6c60\u5858\u6625\u8349\u68a6\uff0c\u9636\u524d\u68a7\u53f6\u5df2\u79cb\u58f0\u201d\uff0c\u65f6\u95f4\u8fc7\u7684\u5f88\u5feb\uff0c\u53ef\u80fd\u6709\u7684\u540c\u4e8b\u542c\u8bf4angularJS\u51fa\u4e862.0\uff0c\u8fd8\u6ca1\u6709\u6765\u5f97\u53ca\u770b\uff0cangular\u5c31\u5df2\u5feb\u901f\u53d1\u5c55\u5230\u4e864.0\u3002\u4eca\u5929\uff0c\u672c\u6587\u4f5c\u8005\u529b\u6c42\u4ee5\u901a\u4fd7\u6613\u61c2\u7684\u8bed\u8a00\uff0c\u4e3a\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0bangular4.0\uff0c\u4ee5\u65b9\u4fbf\u5927\u5bb6\u5c3d\u5feb\u201c\u4e70\u7968\u4e0a\u8f66\u201d\u3002\n<\/p>\n<p style=\"font-size:14px;font-family:'Songti SC';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<h2>\n\t<b>angular\u53d1\u5c55\u7b80\u53f2<\/b><br \/>\n<\/h2>\n<p style=\"font-size:14px;font-family:'Songti SC';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:14px;font-family:Arial;color:#333333;background-color:#FFFFFF;\">\n\tAngularJS\u8bde\u751f\u4e8e2009\u5e74\uff0c\u7531Misko Hevery \u7b49\u4eba\u521b\u5efa\uff0c\u540e\u4e3aGoogle\u6240\u6536\u8d2d\u3002\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\tAngular2 \u53d1\u5e03\u4e8e2016\u5e749\u6708\u4efd\uff0c\u5b83\u662f\u57fa\u4e8eES6\u6765\u5f00\u53d1\u7684\u3002\n<\/p>\n<p style=\"font-size:13px;font-family:'PingFang SC';\">\n\t2017\u5e743\u6708\u4efd\uff0cAngular4.0.0\u6b63\u5f0f\u7248\u53d1\u5e03\u3002\u8fd9\u662f\u81eaangular\u6539\u7248\u540e\uff0c\u9996\u6b21\u53d1\u5e03\u7684\u4e13\u4e1a\u7248\u672c\u3002\u5b83\u5411\u4e0b\u517c\u5bb9\uff0c\u652f\u6301\u6240\u6709\u4f7f\u7528\u4e86angular2.x.x\u7248\u672c\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\n<\/p>\n<p style=\"font-size:14px;font-family:'PingFang SC';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC';color:#262626;background-color:#FFFFFF;\">\n\tangular.js 1.x\u5230angular2\u786e\u5b9e\u662f\u4e00\u4e2a\u975e\u5e38\u5927\u7684\u5347\u7ea7\uff0c\u4ee5\u81f3\u4e8eapi\uff0c\u5b9e\u73b0\u539f\u7406\uff0c\u6846\u67b6\u601d\u8def\u90fd\u662f\u5b8c\u5168\u4e0d\u4e00\u6837\u7684\u3002\u53ef\u4ee5\u6beb\u4e0d\u5938\u5f20\u7684\u8bf4\uff0c\u5b66\u4e60angular2\u5c31\u548c\u5b66\u4e00\u4e2a\u5168\u65b0\u7684\u6846\u67b6\u5e76\u6ca1\u6709\u592a\u5927\u533a\u522b\u3002\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC';color:#262626;background-color:#FFFFFF;\">\n\tangular2.x\u5230angular4.0\u7834\u574f\u6027\u5347\u7ea7\u5e76\u4e0d\u591a\uff0c\u4e5f\u5f88\u5bb9\u6613\u76f4\u63a5\u5347\u7ea7\u52304.0\u7248\u672c\uff0c\u770b\u5b8c\u4e862.x\u7684\u6587\u6863\uff0c\u90a3\u4e48\u4e0a\u624bangular4.0\u5e76\u6ca1\u6709\u95ee\u9898\u3002\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC';color:#262626;background-color:#FFFFFF;\">\n\t\n<\/p>\n<h2>\n\t<b>\u65b0\u7248\u672c\u7684\u7279\u6027<\/b><br \/>\n<\/h2>\n<p style=\"font-size:14px;font-family:'Songti SC';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<ul>\n<li style=\"font-size:13px;font-family:'PingFang SC Semibold';\">\n\t\t<b><\/b><b>\u66f4\u8f7b\u91cf\u5316\u3001\u66f4\u5feb<\/b>&nbsp;\n\t<\/li>\n<li style=\"font-size:13px;font-family:'PingFang SC';\">\n\t\t<b><\/b><b>\u89c6\u56fe\u5f15\u64ce<\/b> \u6539\u53d8\u4e86\u751f\u6210\u7684AOT\u4ee3\u7801\u6837\u5f0f\u3002\u8fd9\u4e2a\u53d8\u5316\u5c06\u51cf\u5c11\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u751f\u6210\u768460%\u7684\u7ec4\u4ef6\u4ee3\u7801\u3002\u5b83\u53ef\u4ee5\u4f7f\u4f60\u81ea\u5df1\u7684\u6a21\u677f\u66f4\u4e2a\u6027\u5316\uff0c\u590d\u7528\u7387\u66f4\u9ad8\u3002\n\t<\/li>\n<li style=\"font-size:13px;font-family:'PingFang SC';\">\n\t\t<b><\/b><b>\u52a8\u753b\u5305<\/b> \u5728@angular\/core\u4e2d\u65b0\u589e\u4e86\u5f88\u591a\u52a8\u753b\u6548\u679c\u5305\u3002\u8fd9\u5c31\u610f\u5473\u7740\uff0c\u4f60\u7528\u6216\u4e0d\u7528\uff0c\u52a8\u753b\u5305\u5c31\u5728\u90a3\u91cc\uff0c\u4e0d\u79bb\u4e0d\u5f03\u3002<br \/>\n\u8fd9\u4e2a\u53d8\u5316\u540c\u6837\u4f1a\u8ba9\u4f60\u66f4\u5bb9\u6613\u7684\u627e\u5230\u6587\u6863\uff0c\u66f4\u597d\u7684\u5b9e\u73b0\u81ea\u52a8\u5b8c\u6210\u3002\u4f60\u4e5f\u53ef\u4ee5\u4ece@angular\/platform-browser\/animations\u4e2d\u5bfc\u5165\u6d4f\u89c8\u5668\u52a8\u753b\u6a21\u578b\uff0c\u4ee5\u6b64\u6765\u4e3a\u4f60\u7684\u4e3b\u8981\u6a21\u5757\u5b9e\u73b0\u4f60\u9700\u8981\u7684\u52a8\u753b\u6548\u679c\u3002\n\t<\/li>\n<\/ul>\n<p style=\"font-size:13px;font-family:'PingFang SC';\">\n\t\n<\/p>\n<h2>\n\t<b>angular4\u5165\u95e8\u653b\u7565<\/b><br \/>\n<\/h2>\n<p style=\"font-size:18px;font-family:'PingFang SC Semibold';color:#333333;background-color:#FFFFFF;\">\n\t<b><br \/>\n<\/b>\n<\/p>\n<h3>\n\t\u5b89\u88c5\u547d\u4ee4\u884c\u5de5\u5177Angular CLI<br \/>\n<\/h3>\n<p style=\"font-family:Monaco;color:#880000;background-color:#F7F7F7;\">\n\t#\u5168\u5c40\u5b89\u88c5 Angular CLI (\u53ef\u4ee5\u4f8b\u7528 ng -v \u67e5\u770b\u5b89\u88c5\u7684\u7248\u672c\u4fe1\u606f)\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tnpm install -g @angular\/cli\n<\/p>\n<h3>\n\t\u521b\u5efa\u9879\u76ee<br \/>\n<\/h3>\n<p style=\"font-size:14px;font-family:'PingFang SC';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng new angularProjectPlus&nbsp;\n<\/p>\n<p style=\"font-size:14px;font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\u5982\u679c\u5728\u540e\u9762\u52a0\u4e0a &#8211;routing\u53c2\u6570\uff0c\u4f1a\u5728app\u76ee\u5f55\u4e0b\u9762\u591a\u51fa\u6765\u4e00\u4e2a\u8def\u7531\u914d\u7f6eapp-\t\trouting.module.ts\u6587\u4ef6,\u540c\u65f6\u5728app.module.ts\u6587\u4ef6\u4e2d\u81ea\u52a8\u5f15\u5165\u751f\u6210\u7684\u8def\u7531\u914d\u7f6e\t\u6587\u4ef6\uff0c\u540c\u65f6\u5728app.component.html\u4e2d\u5f15\u5165&lt;router-outlet&gt;&lt;\/router-outlet&gt;(\u6ce8\u610f\u672c\u9879\u76ee\u751f\u6210\u65f6\u6ca1\u7528\u8fd9\u4e2a\u53c2\u6570\uff0c\u540e\u9762\u54b1\u4eec\u662f\u624b\u5199\u7684\uff0c\u4fbf\u4e8e\u5b66\u4e60)\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\t\n<\/p>\n<h3>\n\t<b>\u542f\u52a8\u5f00\u53d1\u670d\u52a1\u5668<\/b><br \/>\n<\/h3>\n<p style=\"font-size:17.5px;font-family:'PingFang SC Semibold';color:#333333;background-color:#FFFFFF;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tcd angularProjectPlus\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng serve &#8211;open\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;background-color:#FFFFFF;\">\n\tng serve\u547d\u4ee4\u4f1a\u542f\u52a8\u5f00\u53d1\u670d\u52a1\u5668\uff0c\u76d1\u542c\u6587\u4ef6\u53d8\u5316\uff0c\u5e76\u5728\u4fee\u6539\u8fd9\u4e9b\u6587\u4ef6\u65f6\u91cd\u65b0\t\u6784\u5efa\u6b64\u5e94\u7528\u3002\u4f7f\u7528\u2013open\uff08\u6216-o\uff09\u53c2\u6570\u53ef\u4ee5\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\u5e76\u8bbf\u95eehttp:\/\/localhost:4200\/\u3002\u5e94\u7528\u4f1a\u7528\u4e00\u6761\u6d88\u606f\u6765\u8ddf\u4f60\u6253\u62db\u547c\uff1aWelcome to app!\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:17.5px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b> angular<\/b><strong>\u542f\u52a8\u8fc7\u7a0b<\/strong>\n<\/p>\n<p style=\"font-size:17.5px;font-family:'PingFang SC Semibold';color:#333333;background-color:#FFFFFF;\">\n\t<b> <\/b>\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t<b> <\/b>\u901a\u8fc7\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684angular-cli.json\u6587\u4ef6\u53ef\u4ee5\u53d1\u73b0\u542f\u52a8js\u6587\u4ef6\u4f4d\u4e8esrc\u6587\u4ef6\u5939\u4e0b\u7684main.ts,\u9875\u9762\u7684\u5165\u53e3\u6587\u4ef6\u4f4d\u4e8esrc\u6587\u4ef6\u5939\u4e0b\u7684index.html\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<h2>\n\t<b>\u5b9e\u6218\u5f00\u53d1<\/b><br \/>\n<\/h2>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b>\u5f00\u53d1\u51c6\u5907<\/b><b>:<\/b><b>\u5f15\u5165\u7b2c\u4e09\u65b9\u5e93<\/b><b>,jquery<\/b><b>\u53ca<\/b><b>bootstrap<\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tnpm install jquery &#8211;save\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tnpm install [@types](\/user\/types)\/jquery &#8211;save-dev\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tnpm install bootstrap &#8211;save\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tnpm install [@types](\/user\/types)\/bootstrap &#8211;save-dev\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\t@types\/jquery\u548c@types\/bootstrap,\u56e0\u4e3aAngular\u662f\u4f7f\u7528TypeScript\u8bed\u8a00\u5f00\u53d1\u7684\uff0c\u800cjquery\u672c\u8d28\u662fJavaScript\uff0cTypeScript\u662f\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528\u7684\u3002\u6211\u4eec\u9700\u8981\u5148\u5b89\u88c5\u7c7b\u578b\u63cf\u8ff0\u6587\u4ef6\uff0c\u8ba9TypeScript\u8ba4\u8bc6jquery,bootstrap\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC';color:#333333;\">\n\t\u540c\u65f6\u5b89\u88c5\u5b8c\u4e0a\u9762\u7684\u5305\u4e4b\u540e\uff0c\u9700\u8981\u5230\u6839\u76ee\u5f55\u4e0b\u627e\u5230.angular-cli.json\u6587\u4ef6\uff0c\u628a\u5176\u4e2d\u7684 \u201cscripts\u201d: []\u4fee\u6539\u6210\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&#8220;scripts&#8221;: [\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &#8220;..\/node_modules\/jquery\/dist\/jquery.min.js&#8221;,\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &#8220;..\/node_modules\/bootstrap\/dist\/js\/bootstrap.min.js&#8221;\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t]\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue';color:#333333;\">\n\t\u540c\u65f6\u9700\u8981\u628a.angular-cli.json\u6587\u4ef6\u4e2d\u7684&#8221;styles&#8221;: [\u201cstyles.css\u201d]\u4fee\u6539\u6210\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp;&#8220;styles&#8221;: [\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &nbsp; &#8220;styles.css&#8221;,\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &nbsp; &#8220;..\/node_modules\/bootstrap\/dist\/css\/bootstrap.min.css&#8221;\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t&nbsp;],\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;\">\n\t\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4fee\u6539src\u76ee\u5f55\u4e0b\u7684tsconfig.app.json\u6587\u4ef6\uff0c\u5c06jquery\u6dfb\u52a0\u5230types\u6570\u7ec4\u4e2d\u3002\u628a\u5176\u4e2d\u7684&#8221;types&#8221;: []\u4fee\u6539\u6210\u5982\u4e0b(<em>\u6b64\u6b65\u73b0\u5728\u6700\u65b0\u7248\u672c\u5df2\u7ecf\u4e0d\u9700\u8981\u6539\u4e86<\/em>)\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp;&#8220;types&#8221;: [&#8220;jquery&#8221;]\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'PingFang SC Semibold';color:#333333;background-color:#FFFFFF;\">\n\t<b>\u751f\u6210\u9879\u76ee\u7ec4\u4ef6<\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component navbar\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component footer\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component carousel\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component product\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component stars\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component search\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component home\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tng g component product-detail\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp;\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;\">\n\t\u4ee5\u4e0a\u751f\u6210\u4e86\u9875\u9762\u7684\u516b\u4e2a\u7ec4\u4ef6\uff0c\u6bcf\u4e2a\u7ec4\u4ef6\u90fd\u6709\u76f8\u5bf9\u5e94\u7684\u7ec4\u4ef6\u7684html\u9875\u9762\uff0c\u53ef\u4ee5\u5728\u5165\u53e3\u9875\u9762app.component.html\u4e2d\u52a0\u5165\u7ec4\u4ef6\u5982\u4e0b\u4ee3\u7801\uff08\u672c\u9879\u76ee\u7528\u7684\u662fbootstrap\u6837\u5f0f\uff09\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&lt;app-navbar&gt;&lt;\/app-navbar&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&lt;div class=&#8221;container&#8221;&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\t&nbsp; &lt;div class=&#8221;row&#8221;&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &lt;div class=&#8221;col-md-3&#8243;&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &lt;app-search&gt;&lt;\/app-search&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &lt;\/div&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &lt;div class=&#8221;col-md-9&#8243;&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &lt;div class=&#8221;row carousel-container&#8221;&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &nbsp; &lt;app-carousel&gt;&lt;\/app-carousel&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &lt;\/div&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &lt;div class=&#8221;row&#8221;&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &nbsp; &lt;app-product&gt;&lt;\/app-product&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; &lt;\/div&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &lt;\/div&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&nbsp; &lt;\/div&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&lt;\/div&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#000088;background-color:#F7F7F7;\">\n\t&lt;app-footer&gt;&lt;\/app-footer&gt;\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;background-color:#FFFFFF;\">\n\t\u5176\u4e2d\u7ec4\u4ef6\u5982\u679c\u662f\u52a8\u6001\uff0c\u9700\u8981\u5faa\u73af\u6570\u636e\u7684\u65f6\u5019\uff0c\u4f1a\u7528\u5230angular\u7684\u5faa\u73af\u6807\u7b7e*ngFor\uff0c\u7236\u5b50\u7ec4\u4ef6\u4e4b\u95f4\u4f20\u503c\u4f1a\u7528\u5230angular\u91cc\u7684@Input()\u81f3\u6b64\u57fa\u4e8eangular\u9875\u9762\u7ec4\u4ef6\u65b9\u9762\u7684\u5de5\u4f5c\u5c31\u5230\u4e00\u6bb5\u843d\u4e86\u3002\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b>\u4f7f\u7528<\/b><b>angular<\/b><b>\u8def\u7531<\/b><b>(<\/b><b>\u521b\u5efa\u9879\u76ee\u65f6\u5982\u679c\u5e26\u6709<\/b><b>\u2013routing<\/b><b>\u53c2\u6570\uff0c\u4f1a\u751f\u6210\u4e0b\u9762\u7684\u8fd9\u4e2a\u6587\u4ef6\uff0c\u672c\u9879\u76ee\u662f\u624b\u5de5\u5199\u5165\u7684\uff0c\u53ea\u9700\u8981\u4fee\u6539<\/b><b>app.module.ts<\/b><b>\u6587\u4ef6\u5c31\u884c<\/b><b>)<\/b><b>\uff08<\/b><b>app-routing.module.ts<\/b><b>\uff09<\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\timport { NgModule } from &#8216;@angular\/core&#8217;;\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\timport { Routes, RouterModule } from &#8216;@angular\/router&#8217;;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tconst routes: Routes = [];\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#006666;background-color:#F7F7F7;\">\n\t@NgModule({\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; imports: [RouterModule.forRoot(routes)],\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\t&nbsp; exports: [RouterModule]\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t})\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\texport class AppRoutingModule { }\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\u5728const routes: Routes = [];\u6570\u7ec4\u91cc\u81ea\u5b9a\u4e49\u6211\u4eec\u7684\u8def\u7531\u5373\u53ef\uff08\u5e26\u53c2\u6570\u7528\u7684\uff09\u3002\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;\">\n\tapp.module.ts\u6587\u4ef6\u9700\u8981\u4fee\u6539\u7684\u5730\u65b9\u5982\u4e0b(\u672c\u9879\u76ee\u7528\u7684)\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\timport {RouterModule, Routes} from &#8220;@angular\/router&#8221;;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tconst routeConfig: Routes = [\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; {path: &#8221;, component: HomeComponent},\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\t&nbsp; {path: &#8216;product\/:id&#8217;, component: ProductDetailComponent}\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t];\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\timports: [\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp;&nbsp; RouterModule.forRoot(routeConfig)\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t],\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;\">\n\t\u8bf4\u5230\u8def\u7531\uff0c\u5c31\u4f1a\u8ba9\u4eba\u60f3\u8d77\u9875\u9762\u4e4b\u95f4\u7684\u4f20\u9012\u53c2\u6570\u95ee\u9898\uff0c\u597d\u5728angular\u8def\u7531\u91cc\u53ef\u4ee5\u914d\u7f6e\u53c2\u6570\uff0c\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&lt;a [routerLink]=&#8221;[&#8216;\/product&#8217;, product.id]&#8221;&gt;{{product.title}}&lt;\/a&gt;\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC';color:#333333;\">\n\t\u5728\u8be6\u60c5\u9875\u5c31\u53ef\u4ee5\u7528\u5982\u4e0b\u65b9\u5f0f\u5f97\u5230ID\u5173\u5728\u5c55\u793a\u5c42html\u4e2d\u663e\u793a\u5982\u4e0b;\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\texport class ProductDetailComponent implements OnInit {\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; public productId : number;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp;&nbsp;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; constructor(private routerInfo: ActivatedRoute) {}\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; ngOnInit() {\n<\/p>\n<p style=\"font-family:Monaco;color:#880000;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; \/\/&#8212;-\u5f97\u5230\u4e86id,\u5e76\u628a\u5b83\u7ed9\u4e86productId\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; this.productId=this.routerInfo.snapshot.params[&#8220;id&#8221;]\n<\/p>\n<p style=\"font-family:Monaco;color:#880000;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &nbsp; \/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; }\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t}\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC';color:#333333;\">\n\thtml\u7ec4\u4ef6\u9875\u9762\u4e2d\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\u5546\u54c1ID\u4e3a{{productId}}\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b>angular<\/b><b>\u4f9d\u8d56\u6ce8\u5165<\/b><b>(DI)<\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;\">\n\t\u5b66\u8fc7java\u7684\u670b\u53cb\u53ef\u80fd\u66f4\u4e86\u89e3\uff0c\u56de\u4e3ajava\u4e2d\u6709\u4e2a\u6709\u540d\u7684\u6846\u67b6springmvc,\u91cc\u9762\u5c31\u6709\u4f9d\u8d56\u6ce8\u5165\uff0c\u4e0d\u8fc7\u6ca1\u5173\u7cfb\uff0cjs\u4f30\u8ba1\u4e5f\u662f\u5b66\u4e60\u5404\u5bb6\u8bed\u8a00\u6240\u957f\uff0c\u54b1\u4ece\u5934\u5f00\u59cb\u5b66\u3002\u7528\u5230\u4e24\u4e2a\u6982\u5ff5\uff0c\u63d0\u4f9b\u5668\u548c\u6ce8\u5165\u5668\n<\/p>\n<ul>\n<li style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t\t[x] app.module.ts\u6587\u4ef6\u4e2d\u4e00\u822c\u5199\u63d0\u4f9b\u5668(\u7ec4\u4ef6\u4e2d\u4e5f\u53ef\u4ee5\u5199\u63d0\u4f9b\u5668)\u5982\u4e0b\uff1a\n\t<\/li>\n<\/ul>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tproviders: [],\n<\/p>\n<ul>\n<li style=\"font-size:14px;font-family:'PingFang SC';color:#333333;\">\n\t\t[x] \u6ce8\u5165\u5668\u4e00\u822c\u5199\u5728\u7ec4\u4ef6\u7684\u6784\u9020\u51fd\u6570\u4e2d\n\t<\/li>\n<\/ul>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\timport {ActivatedRoute, Params} from &#8220;@angular\/router&#8221;;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tconstructor(private routerInfo: ActivatedRoute) {}\n<\/p>\n<ul>\n<li style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t\t[x] \u751f\u6210\u670d\u52a1\u7684\u547d\u4ee4 ng g service shared\/product(\u670d\u52a1\u540d)\n\t<\/li>\n<\/ul>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;\">\n\t\u672c\u9879\u76ee\u4e2d\u7528ng g service shared\/product \u751f\u6210\u4e00\u4e2a\u4ea7\u54c1\u670d\u52a1\u6765\u5171\u4eab\u6570\u636e\uff0c\u671f\u4e2d\u7528\u5230angular\u4f9d\u8d56\u6ce8\u5165\uff0c\u5177\u4f53\u672c\u9879\u76ee\u914d\u7f6e\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b>app.module.ts<\/b>\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\tproviders: [ProductService]\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b>product.component.ts<\/b>\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\tconstructor(private productService:ProductService) { }\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\texport class ProductComponent implements OnInit {\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; ngOnInit() {\n<\/p>\n<p style=\"font-family:Monaco;color:#880000;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; \/\/service\u52a8\u6001\u6ce8\u5165\u6570\u636e\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; this.products=this.productService.getProducts();\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; }\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t}\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'PingFang SC Semibold';color:#333333;background-color:#FFFFFF;\">\n\t<b>\u6570\u636e\u53cc\u5411\u7ed1\u5b9a\u548c\u7ba1\u9053<\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'PingFang SC Semibold';color:#333333;\">\n\t<b>\u9875\u9762\u5982\u4e0b\uff1a<\/b>\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\t&lt;input [(ngmodel)] =&#8221;name&#8221;&gt;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t{{name}}\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\u751f\u6210\u7ba1\u9053\u7684\u547d\u4ee4\u662f ng g pipe pipe\/multiple\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;background-color:#FFFFFF;\">\n\t<b>&nbsp;http<\/b><b>\u901a\u8baf<\/b>\n<\/p>\n<p style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\tapp.module.ts\u6587\u4ef6\u4fee\u6539\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\timport {HttpModule} from &#8220;@angular\/http&#8221;;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\timports: [\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; HttpModule\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; ]\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-size:17.5px;font-family:'PingFang SC';color:#333333;background-color:#FFFFFF;\">\n\t<b>==<\/b><b>\u6ce8\u610f\uff1a<\/b><b>http<\/b><b>\u8bf7\u6c42\u4e0d\u662f\u7531<\/b><b>get<\/b><b>\u65b9\u6cd5\u89e6\u53d1\u7684\uff0c\u662f\u7531<\/b><b>subscribe<\/b><b>\u65b9\u6cd5\u89e6\u53d1\u7684\uff0c\u6240\u4ee5\u53ea\u5199<\/b><b>get<\/b><b>\u65b9\u6cd5\u4e0d\u4f1a\u5728\u7f51\u7edc\u4e2d\u6709\u8bf7\u6c42<\/b><b>==<\/b><b>\u3002<\/b>\n<\/p>\n<p style=\"font-size:17.5px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<p style=\"font-size:17.5px;font-family:'PingFang SC Semibold';color:#333333;background-color:#FFFFFF;\">\n\t<b>\u6784\u5efa\u548c\u90e8\u7f72<\/b>\n<\/p>\n<p style=\"font-size:17.5px;font-family:'Helvetica Neue';color:#333333;\">\n\t<b><\/b>\n<\/p>\n<ul>\n<li style=\"font-size:14px;font-family:'Helvetica Neue';color:#333333;\">\n\t\t\u6784\u5efa\uff1a\u7f16\u8bd1\u548c\u5408\u5e76\uff08ng build\uff09\n\t<\/li>\n<li style=\"font-size:14px;font-family:'PingFang SC';color:#333333;\">\n\t\t\u90e8\u7f72\uff1a\u4e0e\u670d\u52a1\u5668\u6574\u5408\n\t<\/li>\n<\/ul>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;background-color:#FFFFFF;\">\n\t\u90e8\u7f72\u65f6\u6709\u4e00\u4e2a\u5751(\u4e0d\u52a0\u7684\u8bdd\u5237\u65b0\u9875\u9762\u7684\u8bdd\u5c31\u627e\u4e0d\u5230\u8def\u7531\u4e86)\uff0c\u9700\u8981\u5728app.module.ts\u914d\u7f6e\u5982\u4e0b\u4ee3\u7801\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\timport {HashLocationStrategy, LocationStrategy} from &#8220;@angular\/common&#8221;;\n<\/p>\n<p style=\"font-family:Monaco;color:#660066;background-color:#F7F7F7;\">\n\tproviders: [{provide: LocationStrategy, useClass: HashLocationStrategy}]\n<\/p>\n<p style=\"font-size:14px;font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;background-color:#FFFFFF;\">\n\t\u53e6\u4ee4\u5982\u679c\u540e\u53f0\u63a5\u53e3\u548c\u524d\u53f0\u9879\u76ee\u5f00\u53d1\u7684\u65f6\u5019\u4e0d\u5728\u540c\u4e00\u4e2a\u7aef\u53e3\uff0c\u8fd8\u9700\u8981\u914d\u7f6e\u4ee3\u7406\u6587\u4ef6\uff1a\u65b0\u5efa proxy.conf.json\uff1a\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t{\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &#8220;\/api&#8221;: {\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&nbsp; &nbsp; &#8220;target&#8221;: &#8220;http:\/\/localhost:8000&#8221;\n<\/p>\n<p style=\"font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t&nbsp; }\n<\/p>\n<p style=\"font-family:Monaco;color:#666600;background-color:#F7F7F7;\">\n\t}\n<\/p>\n<p style=\"font-size:14px;font-family:Monaco;color:#333333;background-color:#F7F7F7;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'PingFang SC Light';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\u5e76\u4e14\u5728package.json\u6587\u4ef6\u4fee\u6539\u5982\u4e0b\uff1a\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;\">\n\t\n<\/p>\n<p style=\"font-family:Monaco;color:#008800;background-color:#F7F7F7;\">\n\t&#8220;start&#8221;: &#8220;ng serve &#8211;proxy-config proxy.conf.json&#8221;,\n<\/p>\n<ul>\n<li style=\"font-size:14px;font-family:'PingFang SC';color:#333333;background-color:#FFFFFF;\">\n\t\t\u591a\u73af\u5883\uff1a\u4e00\u5957\u4ee3\u7801\uff0c\u652f\u6301\u591a\u79cd\u73af\u5883\n\t<\/li>\n<\/ul>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t\n<\/p>\n<p style=\"font-size:17.5px;font-family:'PingFang SC Semibold';color:#333333;background-color:#FFFFFF;\">\n\t\u81f3\u6b64\uff0c <b>angular<\/b><b>\u7684\u4e00\u4e2a\u5165\u95e8\u64cd\u4f5c\u5df2\u5b8c\u6210\uff0c\u53ef\u4ee5\u5165\u5751\u5411\u66f4\u9ad8\u7684\u9636\u6bb5\u8fdb\u53d1\u4e86\u3002<\/b>\n<\/p>\n<p style=\"font-size:15px;font-family:'Helvetica Neue Light';color:#333333;background-color:#FFFFFF;\">\n\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>angular4\u7b80\u8981\u5165\u95e8 &nbsp;angular4\u662fangular\u53d1\u5e03\u76844.0\u6b63\u5f0f\u7248\u3002\u201c\u672a\u89c9\u6c60\u5858\u6625\u8349\u68a6\uff0c\u9636&#8230;<\/p>\n","protected":false},"author":2,"featured_media":228,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[60],"tags":[207],"_links":{"self":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/2952"}],"collection":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/comments?post=2952"}],"version-history":[{"count":3,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/2952\/revisions"}],"predecessor-version":[{"id":2957,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/posts\/2952\/revisions\/2957"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/media\/228"}],"wp:attachment":[{"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/media?parent=2952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/categories?post=2952"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daliane.com\/category\/jinjiaoyou\/wp-json\/wp\/v2\/tags?post=2952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}