{"id":38940,"date":"2023-01-17T03:43:39","date_gmt":"2023-08-20T16:56:28","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/"},"modified":"2024-04-29T10:12:21","modified_gmt":"2024-04-29T02:12:21","slug":"%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","title":{"rendered":"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/0-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u5b8c\u6574\u6e90\u4ee3\u7801<br \/>\nhttps:\/\/github.com\/Ohtsu\/ng8-bootstrap4-initial<\/p>\n<p>\u89c6\u9891\u89e3\u8bf4\uff08\u65e5\u8bed\uff09<br \/>\n<iframe loading=\"lazy\" title=\"Angular8\u306b\u304a\u3051\u308bBootstrap4\u74b0\u5883\u306e\u8a2d\u5b9a\u65b9\u6cd5\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/gFxuSi4IZjM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>\u89c6\u9891\u8bf4\u660e\uff08\u82f1\u8bed\uff09<br \/>\n<iframe loading=\"lazy\" title=\"How to set up Bootstrap 4 environment in Angular 8\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/NoSkIVvf5o8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<hr \/>\n<h2>\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/h2>\n<p>\u4e4b\u524d\uff0c\u6211\u4ecb\u7ecd\u4e86\u5728Angular5\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\uff08https:\/\/youtu.be\/ndk2Hqd8P7I\uff09\uff0c\u4f46\u662f\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0cAngular\u7684\u73af\u5883\u5df2\u7ecf\u6709\u4e86\u5f88\u5927\u7684\u53d8\u5316\u3002\u56e0\u6b64\uff0c\u4eca\u5929\u6211\u5c06\u4ecb\u7ecd\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u3002<\/p>\n<hr \/>\n<h2>\u751f\u6210 Angular 8 \u9879\u76ee<\/h2>\n<p>\u9996\u5148\uff0c\u751f\u6210\u4e00\u4e2aAngular8\u7684\u9879\u76ee\u3002<\/p>\n<p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u7a97\u53e3\u4e2d<\/p>\n<p>ng\u65b0\u5efang8-bootstrap4-initial<\/p>\n<p>\u8f93\u5165\u3002<\/p>\n<p>ng8-bootstrap4-initial\u662f\u9879\u76ee\u540d\u79f0\uff0c\u8be5\u540d\u79f0\u53ef\u81ea\u884c\u786e\u5b9a\u3002<\/p>\n<p>\u5728\u63a5\u4e0b\u6765\u7684\u95ee\u9898\u4e2d\uff0c\u6709\u4e00\u4e2a\u5173\u4e8e\u662f\u5426\u8981\u5c06\u8def\u7531\u529f\u80fd\u96c6\u6210\u8fdb\u53bb\u7684\u8be2\u95ee\uff0c\u56e0\u6b64\u6211\u4eec\u9009\u62e9\u201c\u662f\u201d\u3002<\/p>\n<p>\u56e0\u4e3a\u6709\u5173\u6837\u5f0f\u8868\u683c\u5f0f\u7684\u9009\u62e9\u8be2\u95ee\uff0c\u6240\u4ee5\u6211\u4eec\u9009\u62e9SCSS\u3002<\/p>\n<p>\u7136\u540e\u9879\u76ee\u7684\u751f\u6210\u5c06\u5f00\u59cb\u3002<\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\u3002<\/p>\n<h2>\u542f\u52a8Visual Studio Code<\/h2>\n<p>\u7136\u540e\uff0c\u8fdb\u5165\u751f\u6210\u7684\u9879\u76ee\u76ee\u5f55\u4e2d\u3002<\/p>\n<p>\u8f6c\u5230ng8-bootstrap4-initial\u6587\u4ef6\u5939<\/p>\n<p>\u6211\u5c06\u6253\u5f00Visual Studio Code\u3002<\/p>\n<p>\u7f16\u7801\u3002 .)<\/p>\n<p>\u8f93\u5165\u5b83\u3002<\/p>\n<p>\u5f53VSCode\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u540e\uff0c<\/p>\n<p>\u6309\u4e0bCtrl+@\u952e\uff0c\u6253\u5f00\u7ec8\u7aef\u7a97\u53e3\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/25-0.png\" alt=\"undefined\" \/><\/div>\n<h2>\u5b89\u88c5Bootstrap4<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u5728\u7ec8\u7aef\u7a97\u53e3\u4e2d\uff0c<\/p>\n<p>\u5b89\u88c5 Bootstrap \u65f6\uff0c\u8bf7\u4f7f\u7528\u547d\u4ee4 npm i &#8211;save bootstrap\u3002<\/p>\n<p>\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff0c\u5e76\u5b89\u88c5Bootstrap4\u3002<\/p>\n<h2>\u5b89\u88c5ng-bootstrap<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5ng-bootstrap\u3002<\/p>\n<p>\u5b89\u88c5 @ng-bootstrap\/ng-bootstrap \u5e76\u5c06\u5176\u4fdd\u5b58\u5230\u4f9d\u8d56\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4: npm i &#8211;save @ng-bootstrap\/ng-bootstrap<\/p>\n<p>\u8f93\u5165&#8221;\u3068&#8221;\u3002<\/p>\n<h2>\u4fee\u6539 app.module.ts<\/h2>\n<p>\u4e0b\u4e00\u6b65\uff0c\u6211\u4eec\u5c06\u7f16\u8f91app.module.ts\u6587\u4ef6\uff0c\u5e76\u5b89\u88c5ng-bootstrap\u6a21\u5757\u3002<\/p>\n<p>\u6253\u5f00src\/app\u76ee\u5f55\u4e0b\u7684app.module.ts\u6587\u4ef6\uff0c\u5e76\u5bfc\u5165\u8981\u4f7f\u7528\u7684NgbModule\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/37-0.png\" alt=\"undefined\" \/><\/div>\n<pre class=\"post-pre\"><code>import { BrowserModule } from '@angular\/platform-browser';\r\nimport { NgModule } from '@angular\/core';\r\n\r\nimport { AppRoutingModule } from '.\/app-routing.module';\r\n\r\nimport { NgbModule } from '@ng-bootstrap\/ng-bootstrap';\r\n\r\nimport { AppComponent } from '.\/app.component';\r\n\r\n@NgModule({\r\n  declarations: [\r\n    AppComponent\r\n  ],\r\n  imports: [\r\n    BrowserModule,\r\n    NgbModule,\r\n    AppRoutingModule\r\n  ],\r\n  providers: [],\r\n  bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n\r\n\r\n<\/code><\/pre>\n<h2>\u4fee\u6539 angular.json \u6587\u4ef6<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6253\u5f00\u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u7684angular.json\u6587\u4ef6\uff0c\u5e76\u6dfb\u52a0\u5df2\u5b89\u88c5\u7684Bootstrap4\u7684css\u6587\u4ef6\u3002<\/p>\n<p>\u8a73\u7d30\u306f\u3001angular.json\u30d5\u30a1\u30a4\u30eb\u5185\u306eprojects &#8212; architect &#8212; build &#8212; styles\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&#8220;.\/node_modules\/bootstrap\/dist\/css\/bootstrap.min.css&#8221; \u53ef\u4ee5\u7528\u4e0b\u9762\u7684\u4e2d\u6587\u8868\u8fbe\uff1a<\/p>\n<p>&#8220;.\/node_modules\/bootstrap\/dist\/css\/bootstrap.min.css&#8221;<\/p>\n<p>\u6dfb\u52a0\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/44-0.png\" alt=\"undefined\" \/><\/div>\n<pre class=\"post-pre\"><code>{\r\n  \"$schema\": \".\/node_modules\/@angular\/cli\/lib\/config\/schema.json\",\r\n  \"version\": 1,\r\n  \"newProjectRoot\": \"projects\",\r\n  \"projects\": {\r\n    \"ng8-bootstrap4-initial\": {\r\n      \"projectType\": \"application\",\r\n      \"schematics\": {\r\n        \"@schematics\/angular:component\": {\r\n          \"style\": \"scss\"\r\n        }\r\n      },\r\n      \"root\": \"\",\r\n      \"sourceRoot\": \"src\",\r\n      \"prefix\": \"app\",\r\n      \"architect\": {\r\n        \"build\": {\r\n          \"builder\": \"@angular-devkit\/build-angular:browser\",\r\n          \"options\": {\r\n            \"outputPath\": \"dist\/ng8-bootstrap4-initial\",\r\n            \"index\": \"src\/index.html\",\r\n            \"main\": \"src\/main.ts\",\r\n            \"polyfills\": \"src\/polyfills.ts\",\r\n            \"tsConfig\": \"tsconfig.app.json\",\r\n            \"assets\": [\r\n              \"src\/favicon.ico\",\r\n              \"src\/assets\"\r\n            ],\r\n            \"styles\": [\r\n              \".\/node_modules\/bootstrap\/dist\/css\/bootstrap.min.css\",\r\n              \"src\/styles.scss\"\r\n            ],\r\n            \"scripts\": []\r\n          },\r\n\r\n\r\n<\/code><\/pre>\n<h2>\u9879\u76ee\u542f\u52a8\u7684\u9a8c\u6536\u68c0\u67e5<\/h2>\n<p>\u5728\u8fd9\u4e2a\u9636\u6bb5\uff0c\u9996\u5148\u8981\u68c0\u67e5\u9879\u76ee\u662f\u5426\u80fd\u591f\u542f\u52a8\u3002<\/p>\n<p>\u5728\u7ec8\u7aef\u7a97\u53e3\u4e2d\uff0c<\/p>\n<p>\u5514\u6015 -o<\/p>\n<p>\u8f93\u5165\u5982\u4e0b\u3002<\/p>\n<p>\u6d4f\u89c8\u5668\u5c06\u81ea\u52a8\u6253\u5f00\uff0c\u663e\u793aAngular\u7684\u9ed8\u8ba4\u9875\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/52-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u597d\u7684\u3002<\/p>\n<h2>ng-bootstrap\u7f51\u7ad9\u7684\u5c55\u793a<\/h2>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u5c06\u901a\u8fc7\u4f7f\u7528ng-bootstrap\u7f51\u7ad9\u7684\u6f14\u793a\u7a0b\u5e8f\u6765\u786e\u8ba4Bootstrap4\u5b9e\u73b0\u4e86\u54ea\u4e9b\u529f\u80fd\u3002<\/p>\n<p>\u6211\u8981\u6253\u5f00ng-bootstrap\u7f51\u7ad9\u3002<\/p>\n<p>\u8bf7\u4f7f\u7528\u4e0b\u8ff0\u4e2d\u6587\u5730\u5740\uff1a<\/p>\n<p>\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u4e2d\u6587\u8868\u8fbe\uff1a<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u7f51\u9875\u94fe\u63a5\uff1ahttps:\/\/ng-bootstrap.github.io\/#\/home<\/p>\n<p>\u662f\u7684\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/60-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u51b3\u5b9a\u9009\u62e9\u901a\u5e38\u5e38\u7528\u7684\u4e0b\u62c9\u83dc\u5355\u3002<\/p>\n<p>\u4ece\u5de6\u8fb9\u7684\u83dc\u5355\u4e2d\u9009\u62e9\u4e0b\u62c9\u83dc\u5355\u3002<\/p>\n<p>\u901a\u8fc7\u6253\u5f00&#8221;Examples&#8221;\u9009\u9879\u5361\uff0c\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u4e0b\u62c9\u548c\u5f39\u51fa\u7684\u529f\u80fd\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/64-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u6211\u51b3\u5b9a\u5728Angular 8\u7684\u9879\u76ee\u4e2d\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5355\u51fb\u201cCode\u201d\u6309\u94ae\uff0c\u4ee5\u663e\u793a\u8be5\u6e90\u4ee3\u7801\u3002<\/p>\n<p>\u7136\u540e\uff0c\u590d\u5236\u8fd9\u4e2a\u6e90\u6587\u4ef6\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/68-0.png\" alt=\"undefined\" \/><\/div>\n<h2>\u5bf9app.component.html\u8fdb\u884c\u4fee\u6539<\/h2>\n<p>\u56de\u5230VSCode\uff0c\u6253\u5f00\u4f4d\u4e8esrc\/app\u76ee\u5f55\u4e0b\u7684app.component.html\u6587\u4ef6\uff0c\u5728\u590d\u5236\u7684\u4e0b\u62c9\u83dc\u5355\u793a\u4f8b\u6e90\u4ee3\u7801\u4e2d\u7c98\u8d34\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/71-0.png\" alt=\"undefined\" \/><\/div>\n<h2>\u8bf7\u5728\u6d4f\u89c8\u5668\u4e2d\u786e\u8ba4<\/h2>\n<p>\u53ea\u8981\u672c\u5730\u670d\u52a1\u5668\u4ecd\u5728\u8fd0\u884c\uff0c\u5f53\u60a8\u66f4\u6539\u4e86app.component.html\u6587\u4ef6\u540e\uff0c\u901a\u8fc7\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00http:\/\/localhost:4200\u53ef\u4ee5\u786e\u8ba4\u66f4\u6539\u7684\u53cd\u6620\u3002<\/p>\n<p>\u7531\u4e8e\u753b\u9762\u592a\u5c0f\uff0c\u4e0b\u62c9\u83dc\u5355\u53d8\u6210\u4e86\u4e0a\u62c9\u83dc\u5355\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/75-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u90a3\u4e48\uff0c\u6211\u4eec\u7a0d\u5fae\u4fee\u6539\u4e00\u4e0bapp.component.html\u6587\u4ef6\u3002<\/p>\n<p>\u6ce8\u91ca\u6389\u9ed8\u8ba4\u7684\u663e\u793a\u90e8\u5206\uff0c\u5e76\u6269\u5927\u663e\u793a\u533a\u57df\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/78-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u6211\u5df2\u7ecf\u786e\u8ba4\u4e86\u4e0b\u62c9\u83dc\u5355\u7684\u8bbe\u7f6e\uff0c\u4f46\u7531\u4e8e\u4e0b\u62c9\u6846\u7684\u663e\u793a\u533a\u57df\u8f83\u5c0f\uff0c\u6211\u8981\u8fdb\u4e00\u6b65\u4fee\u6539app.component.html\u6587\u4ef6\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/80-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u6211\u5c06\u63d2\u5165\u6362\u884c\u7b26\uff0c\u5e76\u6269\u5927\u6807\u9898\u4e0e\u4e4b\u95f4\u7684\u95f4\u9694\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/82-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u6211\u5728Angular8\u9879\u76ee\u4e2d\u6210\u529f\u5730\u786e\u8ba4\u4e86Bootstrap4\u7684\u4e0b\u62c9\u83dc\u5355\u548c\u4e0a\u62c9\u83dc\u5355\u529f\u80fd\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/84-0.png\" alt=\"undefined\" \/><\/div>\n<p>\u6ca1\u95ee\u9898\u3002 .)<\/p>\n<hr \/>\n<h2>\u53c2\u8003\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">&#8220;Angular 7 Bootstrap 4 UIs: ng-bootstrap and ngx-bootstrap [Part 1]&#8221;,<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.techiediaries.com\/angular-bootstrap-ui\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">&#8220;Angular5, Angular6, Angular7 Custom Library: Step-by-step guide&#8221;,<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.udemy.com\/angular5-custom-library-the-definitive-step-by-step-guide\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">&#8220;Angular5, Angular6, Angular7\u7528 \u30ab\u30b9\u30bf\u30e0\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f5c\u6210: \u5b8c\u5168\u30b9\u30c6\u30c3\u30d7\u30fb\u30d0\u30a4\u30fb\u30b9\u30c6\u30c3\u30d7\u30fb\u30ac\u30a4\u30c9&#8221;,<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/www.udemy.com\/angular5-l\/<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5b8c\u6574\u6e90\u4ee3\u7801 https:\/\/github.com\/Ohtsu\/ng8-bootstrap4-initial \u89c6 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38940","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>\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f - 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\/\u5728angular8\u4e2d\u8bbe\u7f6ebootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f\" \/>\n<meta property=\"og:description\" content=\"\u5b8c\u6574\u6e90\u4ee3\u7801 https:\/\/github.com\/Ohtsu\/ng8-bootstrap4-initial \u89c6 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728angular8\u4e2d\u8bbe\u7f6ebootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-20T16:56:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T02:12:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/0-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\",\"name\":\"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-20T16:56:28+00:00\",\"dateModified\":\"2024-04-29T02:12:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<meta property=\"og:video\" content=\"https:\/\/www.youtube.com\/embed\/gFxuSi4IZjM\" \/>\n<meta property=\"og:video:type\" content=\"text\/html\" \/>\n<meta property=\"og:video:duration\" content=\"465\" \/>\n<meta property=\"og:video:width\" content=\"480\" \/>\n<meta property=\"og:video:height\" content=\"270\" \/>\n<meta property=\"ya:ovs:adult\" content=\"false\" \/>\n<meta property=\"ya:ovs:upload_date\" content=\"2023-08-20T16:56:28+00:00\" \/>\n<meta property=\"ya:ovs:allow_embed\" content=\"true\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f - 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\/\u5728angular8\u4e2d\u8bbe\u7f6ebootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f","og_description":"\u5b8c\u6574\u6e90\u4ee3\u7801 https:\/\/github.com\/Ohtsu\/ng8-bootstrap4-initial \u89c6 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728angular8\u4e2d\u8bbe\u7f6ebootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-20T16:56:28+00:00","article_modified_time":"2024-04-29T02:12:21+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d377237434c4406c72ea9\/0-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","name":"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-20T16:56:28+00:00","dateModified":"2024-04-29T02:12:21+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Angular8\u4e2d\u8bbe\u7f6eBootstrap4\u73af\u5883\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8angular8%e4%b8%ad%e8%ae%be%e7%bd%aebootstrap4%e7%8e%af%e5%a2%83%e7%9a%84%e6%96%b9%e6%b3%95%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]},"og_video":"https:\/\/www.youtube.com\/embed\/gFxuSi4IZjM","og_video_type":"text\/html","og_video_duration":"465","og_video_width":"480","og_video_height":"270","ya_ovs_adult":"false","ya_ovs_upload_date":"2023-08-20T16:56:28+00:00","ya_ovs_allow_embed":"true"},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38940","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=38940"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38940\/revisions"}],"predecessor-version":[{"id":84651,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38940\/revisions\/84651"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=38940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=38940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=38940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}