我有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",
...
]