1 | # this package was renamed to ngx-bootstrap
|
2 |
|
3 |
|
4 | # ngx-bootstrap [![npm version](https://badge.fury.io/js/ngx-bootstrap.svg)](http://badge.fury.io/js/ngx-bootstrap) [![npm downloads](https://img.shields.io/npm/dm/ng2-bootstrap.svg)](https://npmjs.org/ngx-bootstrap)[![slack](https://ngx-slack.herokuapp.com/badge.svg)](https://ngx-slack.herokuapp.com)
|
5 | Native Angular directives for Bootstrap 3 and Bootstrap 4
|
6 |
|
7 | [![Angular Style Guide](https://mgechev.github.io/angular2-style-guide/images/badge.svg)](https://angular.io/styleguide)
|
8 | [![Build Status](https://travis-ci.org/valor-software/ngx-bootstrap.svg?branch=master)](https://travis-ci.org/valor-software/ngx-bootstrap)
|
9 | [![codecov](https://codecov.io/gh/valor-software/ngx-bootstrap/branch/development/graph/badge.svg)](https://codecov.io/gh/valor-software/ngx-bootstrap)
|
10 | [![Dependency Status](https://david-dm.org/valor-software/ngx-bootstrap.svg)](https://david-dm.org/valor-software/ngx-bootstrap)
|
11 |
|
12 | [![NPM](https://nodei.co/npm/ng2-bootstrap.png?downloads=true&downloadRank=true&stars=true)](https://npmjs.org/ngx-bootstrap)
|
13 | [![NPM](https://nodei.co/npm-dl/ng2-bootstrap.png?height=3&months=6)](https://npmjs.org/ngx-bootstrap)
|
14 | [![Sauce Test Status](https://saucelabs.com/browser-matrix/valorkin.svg)](https://saucelabs.com/u/valorkin)
|
15 |
|
16 | ## Table of contents
|
17 | 1. [Getting Started](#getting-started)
|
18 | 2. [Installation instructions](#installation-instructions)
|
19 | 3. [Usage & Demo](#usage--demo)
|
20 | 4. [API](#api)
|
21 | 5. [Troubleshooting](#troubleshooting)
|
22 | 6. [Contributing](#contribution)
|
23 | 7. [License](#license)
|
24 |
|
25 | # Getting Started
|
26 |
|
27 | 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.
|
28 |
|
29 | Additionally to allow reach experience while working with Dates we are using [moment.js](http://momentjs.com/), de facto base date manipulation library at the moment.
|
30 |
|
31 | # Installation instructions
|
32 |
|
33 | Install `ngx-bootstrap` from `npm`
|
34 | ```bash
|
35 | npm install ngx-bootstrap --save
|
36 | ```
|
37 |
|
38 | You will need bootstrap styles (Bootstrap 3)
|
39 |
|
40 | ```
|
41 | <!-- index.html -->
|
42 | <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
|
43 | ```
|
44 |
|
45 | Or Bootstrap 4
|
46 | ```
|
47 | <!--- index.html -->
|
48 | <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet">
|
49 | ```
|
50 | To enable bootstrap 4 theme templates in ngx-bootstrap, please read
|
51 | [here](https://github.com/valor-software/ngx-bootstrap/blob/development/docs/getting-started/bootstrap4.md)
|
52 |
|
53 | ```
|
54 | <!-- index.html -->
|
55 | <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
|
56 | ```
|
57 |
|
58 |
|
59 | ## How to use it with:
|
60 | - `angular-cli` please refer to [getting-started-with-ng-cli](https://github.com/valor-software/ngx-bootstrap/tree/development/docs/getting-started/ng-cli.md)
|
61 | - `angular-seed` please refer to [getting-started-with-angular-seed](https://github.com/valor-software/ngx-bootstrap/tree/development/docs/getting-started/angular-seed.md)
|
62 | - `system.js` (and [angular2 quickstart](https://angular.io/docs/ts/latest/quickstart.html)) please checkout [sample repository](https://github.com/valor-software/angular2-quickstart)
|
63 | - `plnkr` sample available [here](http://bit.ly/ngx-bootstrap-plnkr)
|
64 | - `AoT using ngc and rollup` please refer to [ngx-bootstrap-with-aot](https://github.com/valor-software/ngx-bootstrap/tree/development/docs/getting-started/aot.md)
|
65 | - `Bootstrap 4 and angular-cli` please refer to [using-with-bootstrap-4-and-angular-cli](https://github.com/valor-software/ngx-bootstrap/tree/development/docs/getting-started/bootstrap4.md)
|
66 |
|
67 | # Usage & Demo
|
68 |
|
69 | Main source of API documentation and usage scenarious available here:
|
70 | [http://valor-software.github.io/ngx-bootstrap/](http://valor-software.github.io/ngx-bootstrap/)
|
71 |
|
72 | # API
|
73 | Check demo page for API [reference](http://valor-software.github.io/ngx-bootstrap/)
|
74 |
|
75 | # Troubleshooting
|
76 |
|
77 | So you are in trouble, where to get help:
|
78 | - you can search and ask for help at [StackOverflow](https://stackoverflow.com/questions/tagged/ngx-bootstrap)
|
79 | - you can join [gitter](https://gitter.im/valor-software/ngx-bootstrap) or [slack](https://ngx-slack.herokuapp.com/) and ask a question ( response in slack will be faster )
|
80 | - if none of this helped please [search](https://github.com/valor-software/ngx-bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue) and only then open new issue
|
81 |
|
82 | # Contribution
|
83 |
|
84 | Are very welcome! And remember, contribution is not only PRs and code, but any help with docs or helping other developers to solve issues are very appreciated! Thanks in advance!
|
85 |
|
86 | ## If you need more modules check [here](https://github.com/valor-software/ng2-plans)
|
87 |
|
88 | Please read central `ngx` modules [readme](https://github.com/valor-software/ng2-plans) for details, plans and approach
|
89 |
|
90 | ## Credits
|
91 | Crossbrowser testing sponsored by [Browser Stack](https://www.browserstack.com)
|
92 | [<img src="https://camo.githubusercontent.com/a7b268f2785656ab3ca7b1cbb1633ee5affceb8f/68747470733a2f2f64677a6f7139623561736a67312e636c6f756466726f6e742e6e65742f70726f64756374696f6e2f696d616765732f6c61796f75742f6c6f676f2d6865616465722e706e67" alt="Browser Stack" height="31px" style="background: cornflowerblue;">](https://www.browserstack.com)
|