You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-26
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,11 @@ This sample project runs in both modes (web and electron). To make this work, **
82
82
3rd party libraries used in electron's renderer process (like angular) have to be added in `dependencies` of `package.json`. \
83
83
Please check `providers/electron.service.ts` to watch how conditional import of libraries has to be done when using NodeJS / 3rd party libraries in renderer context (i.e. Angular).
84
84
85
+
## Add a dependency with ng-add
86
+
87
+
You may encounter some difficulties with `ng-add` because this project doesn't use the defaults `@angular-builders`. \
88
+
For example you can find [here](HOW_TO.md) how to install Angular-Material with `ng-add`.
89
+
85
90
## Browser mode
86
91
87
92
Maybe you only want to execute the application in the browser with hot reload? Just run `npm run ng:serve:web`.
@@ -115,32 +120,6 @@ E2E Test scripts can be found in `e2e` folder.
115
120
Note: To make it work behind a proxy, you can add this proxy exception in your terminal
First add Angular Material using `ng add` command:
121
-
122
-
```bash
123
-
ng add @angular/material
124
-
```
125
-
You will get the following questions:
126
-
127
-
```bash
128
-
? Choose a prebuilt theme name, or "custom"for a custom theme: *Choose any theme you like here*
129
-
? Set up global Angular Material typography styles?*Yes*
130
-
? Set up browser animations for Angular Material?*Yes*
131
-
```
132
-
Angular Material will start installing, but you will get the following error after installation:
133
-
134
-
```bash
135
-
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.
136
-
```
137
-
*No need to Panic!* Just add your desired theme in style.scss:
Angular Material Library is now installed in your project.
143
-
144
123
## Debug with VsCode
145
124
146
125
[VsCode](https://code.visualstudio.com/) debug configuration is available! In order to use it, you need the extension [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome).
0 commit comments