diff --git a/README.md b/README.md
index b643da4d60..e6c5fdf07e 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ Best way to quickly integrate Bootstrap 3
```
+##### Method 2
+Use the Angular CLI ng add command for updating your Angular project
+```bash
+ng add ngx-bootstrap
+```
+OR use `ng add` to add needed component (for example tooltip)
+```bash
+ng add ngx-bootstrap --component tooltip
+```
+Add component to your page:
+```
+
+```
### Setting up the bootstrap version manually
Sometimes, your project might contain some library that could interfear with the bootstrap framework, or you might have a customized version of bootstrap. The consequence is that the process of determining bootstrap version might be failed, which can break the UI. In that case, we can still set the bootstrap version manually in the boostraping component (i.e. `AppComonent`):
```
@@ -118,13 +134,13 @@ Check demo page for API [reference](https://valor-software.com/ngx-bootstrap/)
First time:
- clone repository
- `npm install`
- - `npm run test`
+ - `npm run build`
To update your fork and prepare it for local usage:
- `git pull upstream development`
- `rm -rf node_modules`
- `npm install`
- - `npm run test` _*// it will build the lib, create a link in node_modules and run package's "test" script*_
+ - `npm run build`
To run the demo:
- `npm run demo.serve` _*// to serve local demo. This is for testing only, without watchers.*_
diff --git a/demo/src/app/common/getting-started/getting-started.component.html b/demo/src/app/common/getting-started/getting-started.component.html
index b6235885d6..a7a1856cf2 100644
--- a/demo/src/app/common/getting-started/getting-started.component.html
+++ b/demo/src/app/common/getting-started/getting-started.component.html
@@ -65,6 +65,7 @@
Getting Started
ngx-bootstrap contains all core (and not only) Bootstrap components powered by Angular. So you don't need to include original JS components, but we are using markup and css provided by Bootstrap.
Installation instructions
+
Method 1
Install ngx-bootstrap from npm
npm install ngx-bootstrap --save
@@ -80,7 +81,32 @@
Installation instructions
To enable bootstrap 4 theme templates in ngx-bootstrap, please read here
Angular CLI ng add command will update your Angular project with the necessary ngx-bootstrap dependencies, make changes to package.json, angular.json and will execute initialization code.
+
ng add ngx-bootstrap
+
ng add ngx-bootstrap --component componentName
+
ng add will use your package manager to download dependencies for ngx-bootstrap and invoke an installation script (implemented as a schematic) which will update your project and add additional dependencies (e.g. styles)
+ List of possible commands for adding appropriate component
+
+ ng add ngx-bootstrap --component accordion
+ ng add ngx-bootstrap --component alerts
+ ng add ngx-bootstrap --component buttons
+ ng add ngx-bootstrap --component carousel
+ ng add ngx-bootstrap --component collapse
+ ng add ngx-bootstrap --component datepicker
+ ng add ngx-bootstrap --component dropdowns
+ ng add ngx-bootstrap --component modals
+ ng add ngx-bootstrap --component pagination
+ ng add ngx-bootstrap --component popover
+ ng add ngx-bootstrap --component progressbar
+ ng add ngx-bootstrap --component rating
+ ng add ngx-bootstrap --component sortable
+ ng add ngx-bootstrap --component tabs
+ ng add ngx-bootstrap --component timepicker
+ ng add ngx-bootstrap --component tooltip
+ ng add ngx-bootstrap --component typeahead
+
Setting up the bootstrap version manually
Sometimes, your project might contain some library that could interfear with the bootstrap framework, or you might have a customized version of bootstrap. The consequence is that the process of determining bootstrap version might be failed, which can break the UI. In that case, we can still set the bootstrap version manually in the boostraping component (i.e. AppComonent):
Displays collapsible content panels for presenting information in a limited amount of space
The accordion component builds on top of the collapse directive to provide a list
of items, with collapsible bodies that are collapsed or expanded by clicking on the item's header.
-
+
The easiest way to add an accordion component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component accordion
diff --git a/demo/src/app/components/+accordion/docs/usage.md b/demo/src/app/components/+accordion/docs/usage.md
index 3cd5ef083c..262df79c8d 100644
--- a/demo/src/app/components/+accordion/docs/usage.md
+++ b/demo/src/app/components/+accordion/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { AccordionModule } from 'ngx-bootstrap/accordion';
// or
import { AccordionModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+alerts/alerts-section.component.html b/demo/src/app/components/+alerts/alerts-section.component.html
index 9106901ba3..e1f4bcfc70 100644
--- a/demo/src/app/components/+alerts/alerts-section.component.html
+++ b/demo/src/app/components/+alerts/alerts-section.component.html
@@ -1,5 +1,6 @@
Provides contextual feedback messages for typical user actions with the handful of available and flexible alert messages.
-
+
The easiest way to add an alerts component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component alerts
diff --git a/demo/src/app/components/+alerts/docs/usage.md b/demo/src/app/components/+alerts/docs/usage.md
index 630030c4d5..98d3c85ffd 100644
--- a/demo/src/app/components/+alerts/docs/usage.md
+++ b/demo/src/app/components/+alerts/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { AlertModule } from 'ngx-bootstrap/alert';
// or
import { AlertModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+buttons/buttons-section.component.html b/demo/src/app/components/+buttons/buttons-section.component.html
index 31f39106de..a240713a9e 100644
--- a/demo/src/app/components/+buttons/buttons-section.component.html
+++ b/demo/src/app/components/+buttons/buttons-section.component.html
@@ -1,6 +1,7 @@
There are two directives that can make a group of buttons behave like a set of checkboxes, radio
buttons, or a hybrid where radio buttons can be unchecked.
-
+
The easiest way to add the buttons component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component buttons
diff --git a/demo/src/app/components/+buttons/docs/usage.md b/demo/src/app/components/+buttons/docs/usage.md
index 7ff5205f03..c0785cdef1 100644
--- a/demo/src/app/components/+buttons/docs/usage.md
+++ b/demo/src/app/components/+buttons/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { ButtonsModule } from 'ngx-bootstrap/buttons';
// or
import { ButtonsModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+carousel/carousel-section.component.html b/demo/src/app/components/+carousel/carousel-section.component.html
index 08b073b0c2..a5f6d7ee9a 100644
--- a/demo/src/app/components/+carousel/carousel-section.component.html
+++ b/demo/src/app/components/+carousel/carousel-section.component.html
@@ -1,6 +1,7 @@
A slideshow component for cycling through elements—images or slides of text—like a carousel. Nested
carousels are not supported.
-
+
The easiest way to add the carousel component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component carousel
diff --git a/demo/src/app/components/+carousel/docs/usage.md b/demo/src/app/components/+carousel/docs/usage.md
index 0cccc8fc01..e0393442c3 100644
--- a/demo/src/app/components/+carousel/docs/usage.md
+++ b/demo/src/app/components/+carousel/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { CarouselModule } from 'ngx-bootstrap/carousel';
// or
import { CarouselModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+collapse/collapse-section.component.html b/demo/src/app/components/+collapse/collapse-section.component.html
index cc786044de..7facb766c9 100644
--- a/demo/src/app/components/+collapse/collapse-section.component.html
+++ b/demo/src/app/components/+collapse/collapse-section.component.html
@@ -2,6 +2,7 @@
Collapse component allows you to toggle content on your pages with a bit of JavaScript and some
classes. Flexible component that utilizes a handful of classes (from the required transitions
component(not yet implemented)) for easy toggle behavior.
-
+
The easiest way to add the collapse component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component collapse
diff --git a/demo/src/app/components/+collapse/docs/usage.md b/demo/src/app/components/+collapse/docs/usage.md
index ac7947417c..b4879457b9 100644
--- a/demo/src/app/components/+collapse/docs/usage.md
+++ b/demo/src/app/components/+collapse/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { CollapseModule } from 'ngx-bootstrap/collapse';
// or
import { CollapseModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+datepicker/datepicker-section.component.html b/demo/src/app/components/+datepicker/datepicker-section.component.html
index ac15e36ec4..e5a8d025fc 100644
--- a/demo/src/app/components/+datepicker/datepicker-section.component.html
+++ b/demo/src/app/components/+datepicker/datepicker-section.component.html
@@ -4,7 +4,8 @@
Datepicker is a highly configurable component that adds datepicker functionality to your pages. You can
customize the date format and language, restrict the selectable date ranges.
-
+
The easiest way to add the datepicker component to your app (will be added to the root module)
Note: If you installed ngx-bootstrap not via ng add command, you will need to perform a several actions
Notable change is additional css for it "/datepicker/bs-datepicker.css"
There are two ways of adding css:
diff --git a/demo/src/app/components/+datepicker/docs/usage.md b/demo/src/app/components/+datepicker/docs/usage.md
index 012b532289..63cb3cd439 100644
--- a/demo/src/app/components/+datepicker/docs/usage.md
+++ b/demo/src/app/components/+datepicker/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
// or
import { BsDatepickerModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+datepicker/docs/usageOld.md b/demo/src/app/components/+datepicker/docs/usageOld.md
index b5561053c9..e556adb621 100644
--- a/demo/src/app/components/+datepicker/docs/usageOld.md
+++ b/demo/src/app/components/+datepicker/docs/usageOld.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { DatepickerModule } from 'ngx-bootstrap/datepicker';
// or
import { DatepickerModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+dropdown/docs/usage.md b/demo/src/app/components/+dropdown/docs/usage.md
index 7402322dde..2051915e7b 100644
--- a/demo/src/app/components/+dropdown/docs/usage.md
+++ b/demo/src/app/components/+dropdown/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
// or
import { BsDropdownModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+dropdown/dropdown-section.component.html b/demo/src/app/components/+dropdown/dropdown-section.component.html
index 70250d1292..ca5949e4f0 100644
--- a/demo/src/app/components/+dropdown/dropdown-section.component.html
+++ b/demo/src/app/components/+dropdown/dropdown-section.component.html
@@ -1,6 +1,7 @@
Dropdowns are toggleable, contextual overlays for displaying lists of links and more.
They’re made interactive with the included dropdown directives.
-
+
The easiest way to add the dropdown component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component dropdowns
diff --git a/demo/src/app/components/+modal/docs/usage.md b/demo/src/app/components/+modal/docs/usage.md
index a9287bcca8..e176eafc0a 100644
--- a/demo/src/app/components/+modal/docs/usage.md
+++ b/demo/src/app/components/+modal/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { ModalModule } from 'ngx-bootstrap/modal';
// or
import { ModalModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+modal/modal-section.component.html b/demo/src/app/components/+modal/modal-section.component.html
index f54a839c67..ac62538818 100644
--- a/demo/src/app/components/+modal/modal-section.component.html
+++ b/demo/src/app/components/+modal/modal-section.component.html
@@ -1,6 +1,7 @@
Modals are streamlined, but flexible, dialog prompts with the minimum required functionality
and smart defaults.
-
+
The easiest way to add the modals component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component modals
-
\ No newline at end of file
+
diff --git a/demo/src/app/components/+pagination/docs/usage.md b/demo/src/app/components/+pagination/docs/usage.md
index 67c429322e..705b66440e 100644
--- a/demo/src/app/components/+pagination/docs/usage.md
+++ b/demo/src/app/components/+pagination/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { PaginationModule } from 'ngx-bootstrap/pagination';
// or
import { PaginationModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+pagination/pagination-section.component.html b/demo/src/app/components/+pagination/pagination-section.component.html
index da6e7f2ad0..4080b9f7c1 100644
--- a/demo/src/app/components/+pagination/pagination-section.component.html
+++ b/demo/src/app/components/+pagination/pagination-section.component.html
@@ -1,6 +1,7 @@
Pagination - provide pagination links for your site or app with the multi-page pagination component, or the simpler pager alternative.
Pager - quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.
-
+
The easiest way to add the pagination component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component pagination
diff --git a/demo/src/app/components/+popover/docs/usage.md b/demo/src/app/components/+popover/docs/usage.md
index 748603ff87..313f876754 100644
--- a/demo/src/app/components/+popover/docs/usage.md
+++ b/demo/src/app/components/+popover/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { PopoverModule } from 'ngx-bootstrap/popover';
// or
import { PopoverModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+popover/popover-section.component.html b/demo/src/app/components/+popover/popover-section.component.html
index c605c3c4a5..b04762fe61 100644
--- a/demo/src/app/components/+popover/popover-section.component.html
+++ b/demo/src/app/components/+popover/popover-section.component.html
@@ -1,5 +1,6 @@
Add small overlay content, like those found in iOS, to any element for housing secondary information.
-
+
The easiest way to add the popover component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component popover
diff --git a/demo/src/app/components/+progressbar/docs/usage.md b/demo/src/app/components/+progressbar/docs/usage.md
index ac98b8f9fb..80ba7a6914 100644
--- a/demo/src/app/components/+progressbar/docs/usage.md
+++ b/demo/src/app/components/+progressbar/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
// or
import { ProgressbarModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+progressbar/progressbar-section.component.html b/demo/src/app/components/+progressbar/progressbar-section.component.html
index bb6f6a0ef3..b76a326b9f 100644
--- a/demo/src/app/components/+progressbar/progressbar-section.component.html
+++ b/demo/src/app/components/+progressbar/progressbar-section.component.html
@@ -1,5 +1,6 @@
Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.
-
+
The easiest way to add the progressbar component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component progressbar
diff --git a/demo/src/app/components/+rating/docs/usage.md b/demo/src/app/components/+rating/docs/usage.md
index 506d09b0a6..ebeb3c7187 100644
--- a/demo/src/app/components/+rating/docs/usage.md
+++ b/demo/src/app/components/+rating/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { RatingModule } from 'ngx-bootstrap/rating';
// or
import { RatingModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+rating/rating-section.component.html b/demo/src/app/components/+rating/rating-section.component.html
index a475f4a7e0..18e76ceb4e 100644
--- a/demo/src/app/components/+rating/rating-section.component.html
+++ b/demo/src/app/components/+rating/rating-section.component.html
@@ -1,5 +1,6 @@
Rating component that will take care of visualising a star rating bar
-
+
The easiest way to add the rating component to your app (will be added to the root module)
+
ng add ngx-bootstrap --component rating
diff --git a/demo/src/app/components/+sortable/docs/usage.md b/demo/src/app/components/+sortable/docs/usage.md
index ef8bc775e3..aa96d327f6 100644
--- a/demo/src/app/components/+sortable/docs/usage.md
+++ b/demo/src/app/components/+sortable/docs/usage.md
@@ -1,4 +1,4 @@
-// RECOMMENDED (doesn't work with system.js)
+// RECOMMENDED
import { SortableModule } from 'ngx-bootstrap/sortable';
// or
import { SortableModule } from 'ngx-bootstrap';
diff --git a/demo/src/app/components/+sortable/sortable-section.component.html b/demo/src/app/components/+sortable/sortable-section.component.html
index a56dad8ec5..09d98514eb 100644
--- a/demo/src/app/components/+sortable/sortable-section.component.html
+++ b/demo/src/app/components/+sortable/sortable-section.component.html
@@ -2,6 +2,8 @@
The sortable component represents a list of items, with ability to sort them or
move to another container via drag&drop. Input collection isn't mutated by the component,
so events ngModelChange, onChange are using new collections.
+
The easiest way to add the sortable component to your app (will be added to the root module)