skip to Main Content

I am starting a new Angular 4 project. I want to use ui-bootstrap; which is now ngx-bootstrap: http://valor-software.com/ngx-bootstrap/#/

In the past I only had to download ui-bootstrap as it included all core Bootstrap 3 styling plus the component re-writes, In the instructions on: http://valor-software.com/ngx-bootstrap/#/

it says:
You will need bootstrap styles (Bootstrap 3)

Why do I need to include/link Twitter Boostrap in addition to ngx-bootstrap unlike in the past?

2

Answers


  1. You can install with Angular CLI

    npm install ngx-bootstrap bootstrap --save
    

    then update .angular-cli.json

    "styles": [
         "../node_modules/bootstrap/dist/css/bootstrap.min.css",
        "styles.css",
      ],
    
    Login or Signup to reply.
  2. In ui-bootstrap also bootstrap.css were necessary.

    Find this link and check Dependency section – ui-bootstrap

    Dependencies

    This repository contains a set of native AngularJS directives based on Bootstrap’s markup and CSS. As a result no dependency on jQuery or Bootstrap’s JavaScript is required.

    The only required dependencies are:

    • AngularJS
    • Angular-animate
    • Angular-touch
    • Bootstrap CSS
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search