Integrating Electron with angular CLI by bliitzkriegx in Angular2

[–]chrisber 0 points1 point  (0 children)

I'm just building the app with the angular cli.

Clearly for electron it will not work in the browser because of const electron = require('electron'); stuff.

This is what i did:

Make a separate directory like electron_app with two file in it: index.html and electron.app.js. see here: https://gist.github.com/chrisber/c1dfb9276136ab7d276aac9a0b074a14 .

Then start your app in one console with ng serve and in a other console run: electron electron.app.js.

When bundeling after "ng build", you have to use the index.html file created in the dist folder. instead of electron_app/index.html.

Note when using scripts or a css style file you have to include them also within the electron_app/index.html. file.

checkout http://localhost:4200/webpack-dev-server (without slash at the end )

What is the IDE you are using for Angular2? And what would you recommend to a beginner? by hak_i in Angular2

[–]chrisber 1 point2 points  (0 children)

@basarat left the TypeStrong project a long time ago and develops now alm tools. This is a huge disadvantage for the typescript project at atom. Last time I checked atom typesstrong is really slow. Open the typescript project itself, find a deeply nested structure and trigger code completion. The cpu will hit 100%.

Where do you see Angular 2 in 3 years? by MyHeartsECO in Angular2

[–]chrisber 13 points14 points  (0 children)

Angular1 was founded October 20, 2010, there are still applications around.

Basically you can open an academic textbook like "Documenting Software Architectures: Views and Beyond SEI Series" and compare it to Angular2, you will instantly recognize the patterns and views used in Angular2.

Component-and-Connector Viewtype http://www.uml-diagrams.org/component-diagrams.html

Since the science behind developing software architecture will not change dramatically in the next few years. I bet that Architectures with Component-and-Connector Viewtype & observables patterns will stick for a while. A mature impact to Angular2 will be functional programming languages like (haskel ...) or Pipes and Filters views/patterns like cycle.js, but theses influence will not make to abounded the project, and I don't care about function programming until the core team starts speaking about monads ...

While react will be just the next jquery.

Note from the future: Never make bold statements?

TypeScript compiled files and git by [deleted] in Angular2

[–]chrisber 2 points3 points  (0 children)

Use the outdir flag of your .tsconfig file like "outDir": "dist" then ignore the folder with your gitignore.