Giter Site home page Giter Site logo

edgjgg / ng-bootstrap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ng-bootstrap/ng-bootstrap

0.0 2.0 0.0 722 KB

Angular 2 powered Bootstrap

Home Page: https://ng-bootstrap.github.io

License: MIT License

HTML 12.50% TypeScript 75.66% JavaScript 10.81% CSS 1.03%

ng-bootstrap's Introduction

NG Bootstrap - Angular 2 directives specific to Bootstrap 4

Build Status devDependency Status

Welcome to the Angular 2 version of the Angular UI Bootstrap library. This library is being built from scratch by the ui-bootstrap team. We are using TypeScript and targeting the Bootstrap 4 CSS framework.

As with Bootstrap 4 and Angular 2, this library is a work in progress. Please check out our list of issues to see all the things we are implementing. Feel free to make comments there.

Demo

Check all the directives in action at https://ng-bootstrap.github.io

Dependencies

Installation

After installing the above dependencies, install ng-bootstrap via:

npm install --save @ng-bootstrap/ng-bootstrap

Once Installed, directives may be imported in several different ways: For all the directives (if you simply intend on using everything):

import {NGB_DIRECTIVES} from '@ng-bootstrap/ng-bootstrap';

Or, for specific component directives (using Alert as an example):

import {NGB_ALERT_DIRECTIVES} from '@ng-bootstrap/ng-bootstrap';

Once imported, add your chosen directives on your component's directives array property:

directives: [
  ...,
  NGB_DIRECTIVES,
  ...
]

Certain directives need to be precompiled in order to be used. This is done via your component's precompiled array property. The following components require precompilation:

precompile: [
  ...,
  NGB_PRECOMPILE,
  ...
]

We recommend putting these in the top level component of your application. So ultimately, you should wind up having something that looks like this:

import {Component} from '@angular/core';
import {NGB_DIRECTIVES, NGB_PRECOMPILE} from '@ng-bootstrap/ng-bootstrap';

@Component({
  selector: 'app',
  directives: [ NGB_DIRECTIVES ],
  precompile: [ NGB_PRECOMPILE ],
  templateUrl: './app.html',
})
export class App {
    ...
}

Supported browsers

We support the same browsers and versions supported by both Bootstrap 4 and Angular 2, whichever is more restrictive. See this for up-to-date Angular 2 browser support.

  • Chrome (45+)
  • Firefox (40+)
  • IE (9+) (but see Bootstrap 4's notes on IE9)
  • Edge (20+)
  • Safari (7+)

Contributing to the project

We are always looking for the quality contributions! Please check the CONTRIBUTING.md doc for contribution guidelines.

Getting Help

Please, do not open issues for the general support questions as we want to keep GitHub issues for bug reports and feature requests. You've got much better chances of getting your question answered on StackOverflow where maintainers are looking at questions tagged with ng-bootstrap.

StackOverflow is a much better place to ask questions since:

  • there are hundreds of people willing to help on StackOverflow
  • questions and answers stay available for public viewing so your question / answer might help someone else
  • SO voting system assures that the best answers are prominently visible.

To save your and our time we will be systematically closing all the issues that are requests for general support and redirecting people to StackOverflow.

You think you've found a bug?

Oh, we are ashamed and want to fix it ASAP! But before fixing a bug we need to reproduce and confirm it. In order to reproduce bugs we will systematically ask you to provide a minimal reproduction scenario using http://plnkr.co. Having a live, reproducible scenario gives us wealth of important information without going back & forth to you with additional questions like:

  • version of AngularJS used
  • version of this library that you are using
  • 3rd-party libraries used, if any
  • and most importantly - a use-case that fails

A minimal reproduce scenario using http://plnkr.co/ allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem.

We will be insisting on a minimal reproduce scenario in order to save maintainers time and ultimately be able to fix more bugs. Interestingly, from our experience users often find coding problems themselves while preparing a minimal plunk. We understand that sometimes it might be hard to extract essentials bits of code from a larger code-base but we really need to isolate the problem before we can fix it.

Unfortunately we are not able to investigate / fix bugs without a minimal reproduce scenario using http://plnkr.co, so if we don't hear back from you we are going to close an issue that don't have enough info to be reproduced.

Code of Conduct

Please take a moment and read our Code of Conduct

ng-bootstrap's People

Contributors

pkozlowski-opensource avatar foxandxss avatar wesleycho avatar icfantv avatar sendilkumarn avatar maxokorokov avatar robwormald avatar sirajc avatar jnizet avatar robjacobs avatar exflo avatar prayagverma avatar aegyed91 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.