shalomdotnet

Results comments of shalomdotnet

Do you have any error in the console? (Add `win.webContents.openDevTools();` to open it).

Type `location.href` in the console (of the new window). What is the result?

See this fork: [https://github.com/shalomdotnet/angular-electron](https://github.com/shalomdotnet/angular-electron). It work for me.

I think you need use guard like `CanActivate` on home-component

You need to update your global instance of angular-cli. Try to run `npm update -g @angular/cli`.

Try this: ``` { "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Electron: Main", "program": "${workspaceFolder}\\main.ts", "outFiles": [ "${workspaceRoot}/dist/main.js" ], "cwd": "${workspaceRoot}", "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", "windows": { "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"...

In `src/app/main.ts` change the line: ``` typescript preserveWhitespaces: false ``` To: ``` typescript preserveWhitespaces: true ``` I don't have time to explain why it works, but it works.

Try to use an absolute path instead of relative path. In your case is something like: `loadChildren: 'app/components/records/records.module#RecordsModule'`.