add HOW_TO.md
This commit is contained in:
39
HOW_TO.md
Normal file
39
HOW_TO.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
###*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.
|
||||||
Reference in New Issue
Block a user