我有angular2-cli项目。 我使用引导3为用户界面。npm bootstrap-rtl for angular-2 cli项目
现在我需要支持rtl。
我看到在这个链接中,我可以通过npm添加bootstrap-rtl。 它是否与angular-2 cli项目相匹配?
https://www.npmjs.com/package/bootstrap-rtl-ondemand
我有angular2-cli项目。 我使用引导3为用户界面。npm bootstrap-rtl for angular-2 cli项目
现在我需要支持rtl。
我看到在这个链接中,我可以通过npm添加bootstrap-rtl。 它是否与angular-2 cli项目相匹配?
https://www.npmjs.com/package/bootstrap-rtl-ondemand
使用两个Bootstrap 3
或Bootstrap 4
RTL Bootstrap
这个标准补丁,你必须首先对角2
npm install ngx-bootstrap bootstrap --save
安装ng-bootstrap
则必须在ngModule添加NG-引导:
import { AlertModule } from 'ngx-bootstrap';
...
@NgModule({
...
imports: [AlertModule.forRoot(), ... ],
...
})
,则必须从NPM安装RTL-引导:
npm install bootstrap-rtl
,并在最后,你必须打开角cli.json并插入一个新进入的风格数组:
"styles": [
"styles.css",
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"../node_modules/bootstrap-rtl/dist/css/bootstrap-rtl.min.css",
...
]