Fix: style fixes at bs4 demo
Dmitriy Schekhovtsov authored
5f8f4d0a

angular2-bootstrap

Native Angular2 directives for Bootstrap

Works with Bootstrap 3 and 4-alfa

Goal: smooth transition from ui-bootstrap to angular2, all components will have same API

Code Climate Dependency Status devDependency Status

Demo

http://valor-software.github.io/angular2-bootstrap/

Starter package

You can start hacking by cloning starter repo: https://github.com/valor-software/angular2-bootstrap-starter

Components

  • Accordion

  • Alert ([ ] template url)

  • Buttons

  • Carousel (in progress...)

  • Collapse ([ ] animate)

  • Datepicker

  • Dropdown ([ ] template url, [ ] append to body)

  • Modal

  • Pagination([ ] todos, ugly code:) )

  • Popover

  • Progressbar

  • Rating

  • Tabs

  • Timepicker ([ ] validation)

  • [+-] Tooltip (baseline working, in progress...)

  • Typeahead

  • NgTransclude - to transclude templates

  • positional service

  • template url support

Install from npm

npm i ng2-bootstrap

Install from source

  npm i
  npm start

TODO

  • use lodash defaults and isDefined?
  • find a better way to detect is event handler is set (see alerts.ts)
  • support templateUrl for directives
  • demo page
  • docs
  • support animation
  • publish to npm, bower, etc.
  • migration guide from Angular 1 to Angular 2