skirda-launcher/HOW_TO.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2022-08-23 19:09:39 +00:00
###*First check it exists a version of your library compatible with the version of Angular defined in package.json.*
### How to install ng-bootstrap
``` bash
ng add @ng-bootstrap/ng-bootstrap
```
### How to install ngx-bootstrap
``` bash
ng add ngx-bootstrap
```
### How to install Angular Material
Add Angular Material using `ng add` command:
``` bash
ng add @angular/material
```
You will get the following questions:
``` bash
? Choose a prebuilt theme name, or "custom" for a custom theme: *Choose any theme you like here*
? Set up global Angular Material typography styles? *Yes*
? Set up browser animations for Angular Material? *Yes*
```
Angular Material will start installing, but you will get the following error after installation:
``` bash
Your project is not using the default builders for "build". The Angular Material schematics cannot add a theme to the workspace configuration if the builder has been changed.
```
*No need to Panic!* Just add your desired theme in style.scss:
``` bash
@import '@angular/material/prebuilt-themes/indigo-pink.css'
```
Angular Material Library is now installed in your project.