Angular 2 Angular-cli Adding 3rd party libs

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

In angular-cli.json you can change the app configuration.

If you want to add ng2-bootstrap for example:

  1. npm install ng2-bootstrap --save or yarn add ng2-bootstrap

  2. In angular-cli.json just add the path of the bootstrap at node-modules.

    "scripts": [
        "../node_modules/jquery/dist/jquery.js",
        "../node_modules/bootstrap/dist/js/bootstrap.js"
     ]
    


Got any Angular 2 Question?