r/javascript • • Dec 15 '15

Angular 2 Beta is now available

http://angularjs.blogspot.com/2015/12/angular-2-beta.html
140 Upvotes

88 comments sorted by

View all comments

26

u/wreckedadvent Yavascript Dec 15 '15

Well, I'm glad they bothered to keep upgrade paths in mind. That was one of my biggest concerns from the 2.0 announcement.

ngForward looks especially interesting, particularly for those who are still stuck with IE8 support.

However, I don't think I'll see myself using angular 2.0 personally. After react, mithril, riot, etc. I just don't find the boilerplate you have to use with 2.0 very attractive.

0

u/[deleted] Dec 15 '15

[deleted]

17

u/cheese_wizard Dec 15 '15

After using typescript for the last year... I can't see going back. It has caught so many typos for me, and code completion makes things go so much faster.

1

u/urban_racoons_ Dec 16 '15

A little off topic, but what sort of IDE do you use for typescript that includes code completion?

3

u/[deleted] Dec 16 '15 edited Feb 11 '17

4#xML2xKT$G+F&qAXsf4zMTR!dGPI~)f6Jw6A&i-8m%W8.3[R.8[(#1FWx$4qTB)l833KV&(6>FBxoiEvG(3&6+ifGi

2

u/I-fuck-animals Dec 16 '15 edited Dec 16 '15

WebStorm has Typescript completion

It has "completion", period.

Quite a few bugs previously, I submitted many bug reports to Jetbrains, but as of the current version 11.0.2 it seems to work very reliably.

And by the way, WebStorm recognizes inline JSDoc type hints (in additon to all the normal JSDoc):

let /**string[]*/ a;

From now on this is an "array of strings" (I prefer the short notation over Array.<string>) - for the code inspections as well as for completion. If you want types, with WebStorm and an IDE and/or tools recognizing JSDoc type info you get them with regular Javascript.

2

u/x-skeww Dec 16 '15

WebStorm, VS Code, and Atom all provide a very similar experience when working with TS, because the plugins are all built on top of TS' services.

Dart's tooling works the same way. The heavy lifting is done by the SDK's analyzer which is used by all plugins.

New languages should definitely copy this concept. It's the most efficient way to get top-notch tooling into all kinds of editors and IDEs. It also makes it easier to keep those plugins in sync with language changes.

1

u/cheese_wizard Dec 16 '15

I use PHPStorm... WebStorm has it too.