Live data from Hacker News

Angular 2 Beta released

angularjs.blogspot.com

21–30 of 273 posts

Re: Angular 2 Beta released

#21

How many Angular folks are sticking with native ES6 and babel vs TypeScript? Angular is clearly directing folks to TypeScript. I don't want to have to use TypeScript on front-end and ES6 + Babel in Node. Trying to pick one.

As I understand it they have most of their docs written for TypeScript but they plan to fully support ES6 and have the docs to show how to use ES6 too. I would prefer ES6, however it appears that TypeScript is a bit less verbose to write.

The big difference between TS and ES6 is dependency injection. Types can be resolved through TS types while you need to use decorators with ES6.

The problem I have with decorators is that they are not officially part of ES7 spec yet, even if there is a big chance they end up in the final spec, features like ES6 modules are a proof that things can be reworked to death before being standardized.

Re: Angular 2 Beta released

#22

That's Google for you, having to present your exciting MVW toolkit on the crash accident of a website that is Blogspot. Right now, there is a massive cookie consent form blocking my view of the actual article.

is that a european thing?

Yes.

https://en.wikipedia.org/wiki/HTTP_cookie#EU_cookie_directiv...

Re: Angular 2 Beta released

#24

How many Angular folks are sticking with native ES6 and babel vs TypeScript? Angular is clearly directing folks to TypeScript. I don't want to have to use TypeScript on front-end and ES6 + Babel in Node. Trying to pick one.

TypeScript is fully compatible with ES6 as far as I know, so if you want to start using it either on the client side or on the server side, you can start doing that whenever you like (provided you don't mind changing file extensions, etc.)

Re: Angular 2 Beta released

#25
post #18

I'm a C# developer. I have been patiently waiting for angular 2.0 with the hopes of switching my stack to TS.Node + Angular and I'm really excited about trying this!

I'm very impressed with the power Visual Studio Code offers for developing JS/TS projects. Do you do all of your development in the .NET flavour of Visual Studio?

I really wanted to start using ts in my next React app but did not find any good resources and couldn't get it off the floor. Happen to have any insight on that?

Re: Angular 2 Beta released

#26
I had a really painful time trying to contribute to the angular 2 project. I get the impression that the developers actively working on this are working with discussion mostly internal to Google.

It's a shame, because it does seem like both a very powerful and nice approach to building SPAs that I would love to contribute to.

Re: Angular 2 Beta released

#27
post #17

How many Angular folks are sticking with native ES6 and babel vs TypeScript? Angular is clearly directing folks to TypeScript. I don't want to have to use TypeScript on front-end and ES6 + Babel in Node. Trying to pick one.

I'm finding it very difficult due to the sheer number of choices. Angular 2 supports ES5, ES6, TypeScript, and Dart. It's hard enough evaluating what our upgrade path will be from Angular 1.x, let alone which language we should end up using. I kind of have a feeling that by the time we actually need (and have the resources) to upgrade or even start mixing in Angular 2 on our project, native browser support for ES6 wi…

A lot of Angular 2 is optimized around using Typescript. A lot of the heavily-used Typescript features (eg. annotations) are on track for ES7, but not part of ES6.

Re: Angular 2 Beta released

#28

Looks promising... But personally I dislike TS., and I know that it not required for Angular 2..., Now I prefer ES6 + babel, maybe in future I'll change my attitude to TS.

As somebody deciding between ES6 + Babel and TS for a project...What don't you like?

Re: Angular 2 Beta released

#29

That's Google for you, having to present your exciting MVW toolkit on the crash accident of a website that is Blogspot. Right now, there is a massive cookie consent form blocking my view of the actual article.

They own Blogspot, and you could always agree to the "massive cookie consent form" and it would go away.

At which point it's still a shit, unusable site. This isn't making me excited for your magic JS library.

Re: Angular 2 Beta released

#30

I had a really painful time trying to contribute to the angular 2 project. I get the impression that the developers actively working on this are working with discussion mostly internal to Google. It's a shame, because it does seem like both a very powerful and nice approach to building SPAs that I would love to contribute to.

I don't know that its a shame as it may have saved a good deal of time and I think it all looks quite promising!
Post reply on HN