ng2_strap 0.0.7

  • README.md
  • Installing
  • Versions
  • 39

ng2_strap (Deprecated)

Please use ng_bootstrap

Join the chat at https://gitter.im/dart-league/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. 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://dart-league.github.io/ng2_strap/

Components

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

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  ng2_strap: "^0.0.7"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:ng2_strap/common.dart';

import 'package:ng2_strap/index.dart';

import 'package:ng2_strap/position.dart';
        
Version Uploaded Documentation Archive
0.0.7 Aug 10, 2016 Go to the documentation of ng2_strap 0.0.7 Download ng2_strap 0.0.7 archive
0.0.6+1 May 24, 2016 failed Download ng2_strap 0.0.6+1 archive
0.0.6 May 21, 2016 failed Download ng2_strap 0.0.6 archive
0.0.5 May 21, 2016 failed Download ng2_strap 0.0.5 archive
0.0.4+1 May 19, 2016 failed Download ng2_strap 0.0.4+1 archive
0.0.4 May 19, 2016 failed Download ng2_strap 0.0.4 archive
0.0.3+1 Mar 3, 2016 failed Download ng2_strap 0.0.3+1 archive
0.0.3 Mar 3, 2016 failed Download ng2_strap 0.0.3 archive
0.0.2 Dec 28, 2015 failed Download ng2_strap 0.0.2 archive
0.0.1 Nov 17, 2015 failed Download ng2_strap 0.0.1 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
11 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
22 / 100
Overall score:
Weighted score of the above. [more]
39
Learn more about scoring.

Platforms

Detected platforms: web

Platform components identified in package: html.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 errors 38 hints.

    Strong-mode analysis of lib/pagination/pagination.dart failed with the following error:

    line: 97 col: 19
    Couldn't infer type parameter 'T'.\n\nTried to infer 'dynamic' for 'T' which doesn't work:\n Type parameter 'T' declared to extend 'num'.\nThe type 'dynamic' was inferred from:\n Parameter 'a' declared as 'T'\n but argument is 'num'.\n Parameter 'b' declared as 'T'\n but argument is 'dynamic'.\n\nConsider passing explicit type argument(s) to the generic.\n\n

    Strong-mode analysis of lib/position.dart failed with the following error:

    line: 18 col: 33
    The getter 'offsetParent' isn't defined for the class 'Node'.

    Similar analysis of the following files failed:

    • lib/rating/rating.dart (error)
    • lib/accordion/accordion.dart (hint)
    • lib/alert/alert.dart (hint)
    • lib/buttons/button_checkbox.dart (hint)
    • lib/buttons/button_radio.dart (hint)
    • lib/carousel/carousel.dart (hint)
    • lib/collapse/collapse.dart (hint)
    • lib/common.dart (hint)
    • lib/datepicker/date_picker.dart (hint)
    • lib/datepicker/date_picker_inner.dart (hint)
    • lib/datepicker/date_picker_popup.dart (hint)
    • lib/datepicker/day_picker.dart (hint)
    • lib/datepicker/month_picker.dart (hint)
    • lib/datepicker/year_picker.dart (hint)
    • lib/dropdown/dropdown.dart (hint)
    • lib/dropdown/dropdown_keyboard_nav.dart (hint)
    • lib/dropdown/dropdown_menu.dart (hint)
    • lib/dropdown/dropdown_service.dart (hint)
    • lib/dropdown/dropdown_toggle.dart (hint)
    • lib/dropdown/index.dart (hint)
    • lib/index.dart (hint)
    • lib/modal/modal.dart (hint)
    • lib/pagination/pager.dart (hint)
    • lib/progressbar/progressbar.dart (hint)
    • lib/tabs/tabs.dart (hint)
    • lib/timepicker/timepicker.dart (hint)
    • lib/tooltip/tooltip.dart (hint)
    • lib/typeahead/typeahead.dart (hint)
  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use ng2_strap.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.12.0 <2.0.0
angular2 ^2.0.0-beta.17 2.0.0-beta.17 3.1.0+1
bootstrap_sass ^3.3.6 3.3.6 4.0.0
browser ^0.10.0 0.10.0+3
dart_to_js_script_rewriter ^1.0.1 1.0.3
intl ^0.12.4+2 0.12.7+1 0.15.6
markdown ^0.8.0 0.8.0 1.1.1
node_shims ^0.1.3 0.1.3
sass ^0.4.2 0.4.2+7 1.2.1
stream_transformers ^0.3.0+3 0.3.0+3
Transitive dependencies
analyzer 0.27.3 0.31.1
args 0.13.7 1.4.2
async 2.0.6
barback 0.15.2+15
build 0.12.2
charcode 1.1.1
cli_util 0.0.1+2 0.1.2+1
code_transformers 0.4.2+3 0.5.1+4
collection 1.14.9
convert 1.1.1 2.0.1
crypto 0.9.2+1 2.0.2+1
csslib 0.13.7+1 0.14.1
dart_style 0.2.4 1.0.10
fixnum 0.10.7
func 0.1.1 1.0.0
glob 1.1.5
html 0.12.2+2 0.13.3
logging 0.11.3+1
matcher 0.12.2
observe 0.13.5 0.15.1
package_config 0.1.5 1.0.3
path 1.5.1
petitparser 1.7.6
plugin 0.1.0 0.2.0+2
pool 1.3.4
protobuf 0.5.1 0.7.2
smoke 0.3.6+3
source_maps 0.10.4
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
unittest 0.11.7 0.12.4+1
utf 0.9.0+4
watcher 0.9.7+7
when 0.2.0
which 0.1.3
yaml 2.1.13