Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ngtrumbitta/ng-bootstrap-to-bootstrap-3

A CSS compatibility patch to make ng-bootstrap work with Bootstrap 3
https://github.com/ngtrumbitta/ng-bootstrap-to-bootstrap-3

bootstrap bootstrap3 ng-bootstrap

Last synced: 12 days ago
JSON representation

A CSS compatibility patch to make ng-bootstrap work with Bootstrap 3

Awesome Lists containing this project

README

        

# ng-bootstrap to Bootstrap 3

A CSS compatibility patch to make ng-bootstrap work with Bootstrap 3.
Include this after Bootstrap 3 CSS.

## Install

* Install [ng-bootstrap](https://github.com/ng-bootstrap/ng-bootstrap)
* Install [Bootstrap v3.3.7](https://github.com/twbs/bootstrap/tree/v3.3.7)
* Install via NPM:

```sh
npm install ng-bootstrap-to-bootstrap-3
```

* Import, require, link, whatever, after Bootstrap 3 CSS. Tested with Bootstrap v3.3.7.

## Components (see linked demos)

Look for comments in the linked demo, but keep in mind that the approach is always the same:

1. Unlink Bootstrap 4, link Bootstrap 3.3.7
1. Link ng-bootstrap-to-bootstrap-3 CSS patch after Bootstrap 3.3.7
1. Use the markup from Bootstrap 3.3.7 for Angular templates
1. Use the directives, event handlers, and whatever from ng-bootstrap instead of the `data-something` ones from Bootstrap 3

- [x] [Accordion](http://plnkr.co/edit/yjBFQ39QWmLjUVtQDkKS?p=preview) *(BS4 structure with BS3 colors and spacing)*
- [ ] Alert
- [ ] Buttons
- [ ] Carousel
- [x] [Collapse](http://plnkr.co/edit/RFmsRuUJOJrcmzM6O7Bs?p=preview)
- [ ] Datepicker
- [x] [Dropdown](http://plnkr.co/edit/7BTLmeacBXrH84vExqbX?p=preview)
- [x] [Modal](http://plnkr.co/edit/ITBzkXeUfmb71afvSxmA?p=preview)
- [ ] Pagination
- [x] [Popover](http://plnkr.co/edit/YNqd8Ef4LR8zs597pYAj?p=preview)
- [x] [Progressbar](http://plnkr.co/edit/bU8WY2kM2pFGXueCv4S8?p=preview)
- [x] Rating *(It just works, no need for a patch)*
- [ ] Scrollspy *(Planned feature of ng-bootstrap)*
- [x] [Tabs](http://plnkr.co/edit/oOIYDASq98sp6vovwhzo?p=preview)
- [ ] Timepicker
- [ ] Tooltip
- [x] [Typeahead](http://plnkr.co/edit/Nn54QCzKNcWCfd1n2kAu?p=preview)

## TODO

- (nice-to-have) Demo page a-la ng-bootstrap