ng_bootstrap 0.3.1
ng_bootstrap: ^0.3.1 copied to clipboard
Angular 2 and Bootstrap 4
ng_bootstrap #
Getting Started #
1. Create a new angular2-dart app: https://angular.io/docs/dart/latest/quickstart.html
2. Add ng_bootstrap to pubspect.yaml:
dependencies:
...
ng_bootstrap: any
...
3. Add sass transformer:
dependencies:
...
sass_transformer: any
...
transformers:
- sass_transformer
you need to install sass previously
4. Add css stylesheet link to index.html:
<head>
...
<link rel="stylesheet" href="packages/ng_bootstrap/all.css">
...
</head>
5. Add needed ng_bootstrap directives to your components:
@Component(
...
directives: const [NG_BOOTSTRAP_DIRECTIVES])
Components #
- ✅ Accordion
- ✅ Alert
- ✅ Buttons
- ✅ Carousel
- ✅ Collapse
- ✅ DatePicker
- ✅ DatePickerPopup
- ✅ Dropdown
- ✅ Modal
- ✅ Pagination
- ❌ Popover
- ✅ Progressbar
- ✅ Rating
- ✅ Tabs
- ✅ Timepicker
- ✅ Tooltip
- ✅ Typeahead
- ✅ Grid/Table
- ❌ FileInput
- ❌ ImageInput
- ❌ SignItInput
- ❌ SignInput
- ❌ Charts
- ❌ Header Bar
- ❌ Scafold - Base Layout
Others #
- ✅ BsTemplateOutlet - to transclude templates (Most likely will be removed in future versions)
- ✅ positional service
Contribution #
TODO #
- ❌ support animation (in progress...)
- ✅ demo page
- ✅ docs