UNPKG

6.01 kBMarkdownView Raw
1# NG Bootstrap - Angular-powered Bootstrap widgets
2
3[![npm version](https://badge.fury.io/js/%40ng-bootstrap%2Fng-bootstrap.svg)](https://badge.fury.io/js/%40ng-bootstrap%2Fng-bootstrap)
4[![Build Status](https://github.com/ng-bootstrap/ng-bootstrap/workflows/ci/badge.svg?branch=master)](https://github.com/ng-bootstrap/ng-bootstrap/actions)
5[![codecov](https://codecov.io/gh/ng-bootstrap/ng-bootstrap/branch/master/graph/badge.svg)](https://codecov.io/gh/ng-bootstrap/ng-bootstrap)
6[![devDependency Status](https://david-dm.org/ng-bootstrap/ng-bootstrap/dev-status.svg?branch=master)](https://david-dm.org/ng-bootstrap/ng-bootstrap#info=devDependencies)
7[![Sauce Test Status](https://saucelabs.com/browser-matrix/pkozlowski.svg)](https://saucelabs.com/u/pkozlowski)
8
9[Angular](https://angular.io/) widgets built from the ground up using only [Bootstrap 5](https://getbootstrap.com/) CSS with APIs designed for the Angular ecosystem.
10
11Please check our [demo site](https://ng-bootstrap.github.io) and the list of
12[issues](https://github.com/ng-bootstrap/ng-bootstrap/issues) to see all the things we are working on. Feel free to make comments there.
13
14## Table of Contents
15
16- [Demo](#demo)
17- [Dependencies](#dependencies)
18- [Installation](#installation)
19- [Supported browsers](#supported-browsers)
20- [Getting help](#getting-help)
21- [Do you think you've found a bug?](#you-think-youve-found-a-bug)
22- [Contributing to the project](#contributing-to-the-project)
23- [Code of conduct](#code-of-conduct)
24
25## Demo
26
27Please check all components we have in action at https://ng-bootstrap.github.io
28
29## Dependencies
30
31The only dependencies are [Angular](https://angular.io), [Bootstrap 5](https://getbootstrap.com) CSS, and [Popper](https://popper.js.org/).
32The supported versions are:
33
34| ng-bootstrap | Angular | Bootstrap CSS | Popper |
35| ------------ | ------- | ------------- | ------ |
36| 1.x.x | 5.0.2 | 4.0.0 | |
37| 2.x.x | 6.0.0 | 4.0.0 | |
38| 3.x.x | 6.1.0 | 4.0.0 | |
39| 4.x.x | 7.0.0 | 4.0.0 | |
40| 5.x.x | 8.0.0 | 4.3.1 | |
41| 6.x.x | 9.0.0 | 4.4.1 | |
42| 7.x.x, 8.x.x | 10.0.0 | 4.5.0 | |
43| 9.x.x | 11.0.0 | 4.5.0 | |
44| 10.x.x | 12.0.0 | 4.5.0 | |
45| 11.x.x | 13.0.0 | 4.6.0 | |
46| 12.x.x | 13.0.0 | 5.0.0 | 2.10.2 |
47| 13.x.x | 14.1.0 | 5.2.0 | 2.10.2 |
48
49## Installation
50
51We strongly recommend using [Angular CLI](https://cli.angular.io) for setting up a new project. If you have an Angular ≥ 9 CLI project, you could simply use our schematics to add ng-bootstrap library to it.
52
53Just run the following:
54
55```shell
56ng add @ng-bootstrap/ng-bootstrap
57```
58
59It will install ng-bootstrap for the default application specified in your `angular.json`.
60If you have multiple projects and you want to target a specific application, you could specify the `--project` option:
61
62```shell
63ng add @ng-bootstrap/ng-bootstrap --project myProject
64```
65
66If you prefer not to use schematics and install everything manually, please refer to the
67[manual installation instructions](https://ng-bootstrap.github.io/#/getting-started#installation) on our website.
68
69## Supported browsers
70
71We support the same browsers and versions supported by both Bootstrap 4 and Angular, whichever is _more_ restrictive. See [Angular browser support](https://angular.io/guide/browser-support) and [Bootstrap browser support](https://getbootstrap.com/docs/5.1/getting-started/browsers-devices/#supported-browsers) for more details.
72
73Our code is automatically tested on all supported browsers.
74
75## Getting help
76
77Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on [StackOverflow](http://stackoverflow.com/questions/tagged/ng-bootstrap) where maintainers are looking at questions tagged with `ng-bootstrap`.
78
79StackOverflow is a much better place to ask questions since:
80
81- there are hundreds of people willing to help on StackOverflow
82- questions and answers stay available for public viewing so your question/answer might help someone else
83- Stack Overflow's voting system assures that the best answers are prominently visible.
84
85To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.
86
87## Do you think you've found a bug?
88
89We want to fix it ASAP! But before fixing a bug we need to reproduce and confirm it.
90
91We ask you to respect two things:
92
93- fill the GitHub issue template by providing the bug description and appropriate versions of Angular, ng-bootstrap and TypeScript
94- provide a use-case that fails with a **minimal reproduction scenario** using [StackBlitz](https://stackblitz.com) (you can start by forking one from our [demo page](https://ng-bootstrap.github.io/#/components))
95
96A minimal reproduction scenario allows us to quickly confirm a bug (or point out a coding problem) as well as confirm that we are fixing the right problem.
97
98Please note that **we will be insisting on a minimal reproduction scenario** in order to save maintainers time and ultimately be able to fix more bugs. We'll mark the issue as non-actionable without it and close if not heard from the reporter.
99
100Interestingly, from our experience users often find coding problems themselves while preparing a minimal StackBlitz. We understand that sometimes it might be hard to extract essential bits of code from a larger code-base but we really need to isolate the problem before we can fix it.
101
102## Contributing to the project
103
104Please check [DEVELOPER.md](DEVELOPER.md) for documentation on running the project locally and [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines.
105
106## Code of conduct
107
108Please take a moment and read our [Code of Conduct](CODE_OF_CONDUCT.md)