ng2_strap

Native Angular2 Dart directives for Bootstrap

Works with Bootstrap 3

Getting Started

1\. Create a new angular2-dart app: https://angular.io/docs/dart/latest/quickstart.html

2\. Add ng2_strap to pubspect.yaml:

dependencies:
    ...
    ng2_strap: any
    ...

3\. (Optional) Add sass transformer:

dependencies:
    ...
    sass: any
    ...
transformers:
- sass

you need to install sass previously

4\. Add css stylesheet link to index.html:

<head>
    ...
    <link rel="stylesheet" href="packages/ng2_strap/styles/ng2_strap.css">
    ...
</head>

5\. Add needed ng2_strap directives to your components:

@Component(
    ...
    directives: const [N2S_ACCORDION_DIRECTIVES])

Usage & Demo

http://luisvt.github.io/ng2_strap/

Components

  • [x] [Accordion](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Alert](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Buttons](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Carousel](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Collapse](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [DatePicker](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [DatePickerPopup](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Dropdown](http://luisvt.github.io/ng2_strap/#accordion)
  • Modal (in progress...)
  • [x] [Pagination](http://luisvt.github.io/ng2_strap/#accordion)
  • Popover
  • [x] [Progressbar](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Rating](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Tabs](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Timepicker](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Tooltip](http://luisvt.github.io/ng2_strap/#accordion)
  • [x] [Typeahead](http://luisvt.github.io/ng2_strap/#accordion)

  • x NgTransclude - to transclude templates

  • x positional service

Contribution

Please read central ng2 modules readme for details, plans and approach and welcome :)

Create new issues

Fork me

TODO

  • support animation (in progress...)
  • x demo page
  • x docs

Libraries

accordion
alert
button_checkbox
button_radio
collapse
common
index
n2s_date_picker
n2s_dropdown
pagination
position
progressbar
rating
tabs
timepicker
tooltip
typeahead