question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is Angular 2 supported?

See original GitHub issue

Good evening!

Is it possible to use Angular 2 (2.0.0-beta.0) in nw? Have you got any experience with it?

When I use Angular 2 with lite server it works. If I use it inside NW it will broke. Polyfills wanted to use websockets, maybe that is the missing part? Is it replaceable?

I’m trying with these files (copied from Angular’s docs):

<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
<script src="node_modules/rxjs/bundles/Rx.umd.js"></script>
<script src="node_modules/angular2/bundles/angular2-all.umd.js"></script>

Any advice is more than welcomed. Thanks.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
ghostoycommented, Jan 21, 2016

@kisPocok Your sample has 2 problems: 1. package.json is not a valid JSON. There is a trailing comma in the “scripts” fields. 2. app.Subtitle doesn’t exist.

The problem to use Angular in NW is that Angular is going to create variable global which is already created by NW. That will affect the exception handling for Angular, so that you won’t see any error messages when loading your app. A workaround is that you can rename global to anything else, like nw_global before loading any Angular libraries. For example,

<script>
window.nw_global = window.global;
window.global = undefined;
</script>
<!-- Angular 2 Dependencies -->

2reactions
fuchao2012commented, Sep 19, 2016

@ghostoy will u please open a wiki to intro how to start up nwjs with angular2/vue/react. yo is much more prefer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular versioning and releases
Actively supported versionslink​​ The following table provides the status for Angular versions under support. Angular versions v2 to v12 are no longer under...
Read more >
Angular Version List & History – Angular 2,4,5,6,7,8 - Guru99
Still supported but no longer will be developed. It's updated version regularly released because of Semantic Versioning. ; The architecture of ...
Read more >
AngularJS vs. Angular 2 Vs. Angular 4: Key Differences
Angular 4 is compatible with the most recent versions of TypeScript that have powerful type checking and object-oriented features. 3. Expression ...
Read more >
Angular - endoflife.date
Release Released Active Support 15 1 month and 1 week ago. (16 Nov 2022) Ends in 4 months and 3 weeks. (18 M... 14 (...
Read more >
Difference Among Angular 8, 7, 6, 5, 4, 3, 2 - Medium
Angular 5 supports TypeScript 2.3 version. Improved in faster Compiler support: A huge improvement made in an Angular compiler to make the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found