Hacker News new | ask | show | jobs
by chad-autry 3522 days ago
To me, many of the comments seem to have it backwards.

ES6 is a superset for ES5, so given the ES5 docs you can write NG2 apps with ES6.

Typescript being a superset of ES6 means it would be a struggle to write an NG2 app in ES5 or ES6 given only the Typescript documentation. I tried during beta, it was an exercise in frustration that I finally abandoned.

Providing documentation for the lowest common denominator of ES5 should let you write in ES6 (heck, it should let you write in Typescript if you realyl wanted to!) But some of the dev's comments are a bit backwards IMO when they say use Typescript documentation for ES6.

You can see my beta NG2+vailla JS project here https://github.com/chad-autry/ng2bp