Installation
Install ngx-bootstrap from npm
npm install ngx-bootstrap --save
You will need bootstrap style and link bootstrap 3
<!-- index.html -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
Or link bootstrap 4
<!--- index.html -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
Getting started with angular-CLI
Note: you can skip this part if you already have application generated by
ng-cliand webpack
npm i -g @angular/cli
ng new my-app
cd my-app
ng serve
Publicité