Creating an Angular project with Angular CLI. Install Bootstrap In Angular. For the examples, such as the modal, replace template with ng-template in your code and you should be fine. Another way to add Bootstrap to your Angular project is to install it into your project folder by using NPM. Author: Techiediaries Team. If you have feature modules in your application, you also need to import NgbModule, but without the forRoot() method: Other modules in your application can simply import NgbModule: This work is licensed under a Creative Commons Attribution 4.0 International License. When we do the production build with Angular CLI, the CSS files declared in the angular.json will be minified and all styles will be bundled into a single styles.css. The following code shows how to use the dropdowns component.. Each component in ngx-bootstrap … There is also a close button in the modal that is calling modalRef.hide(). However, some ngx-bootstrap components use