angular-2 cli项目的npm引导rtl

angular-2 cli项目的npm引导rtl,npm,angular-ui-bootstrap,Npm,Angular Ui Bootstrap,我有一个angular2 cli项目。 我使用Bootstrap3作为ui 现在我需要支持rtl 我在这个链接中看到,我可以通过npm添加引导rtl。 它是否也与angular-2 cli项目匹配 将此标准修补程序用于引导程序3或引导程序4 必须首先为angular-2安装ng引导程序 npm install ngx-bootstrap bootstrap --save 然后必须在ngModule中添加ng引导: import { AlertModule } from 'ngx-bootstr

我有一个angular2 cli项目。 我使用Bootstrap3作为ui

现在我需要支持rtl

我在这个链接中看到,我可以通过npm添加引导rtl。 它是否也与angular-2 cli项目匹配


将此标准修补程序用于
引导程序3
引导程序4


必须首先为angular-2安装ng引导程序

npm install ngx-bootstrap bootstrap --save
然后必须在ngModule中添加ng引导:

import { AlertModule } from 'ngx-bootstrap';
...
@NgModule({
...
imports: [AlertModule.forRoot(), ... ],
... 
})
然后必须从npm安装rtl引导程序:

npm install bootstrap-rtl
最后,您必须打开angular-cli.json并在样式数组中插入一个新条目:

 "styles": [
        "styles.css",
        "../node_modules/bootstrap/dist/css/bootstrap.min.css",
        "../node_modules/bootstrap-rtl/dist/css/bootstrap-rtl.min.css",
       ...
]