I am new to Angular 2, and I've learned that developers can use type script, ES6 and ES5 to develop, and I know that type script is the superset of ES6 and ES5.
since the syntax is totally different between type script and ES6/ES5, which one should be the prime one to use? and what is the reason?
thanks
since the syntax is totally different between type script and ES6/ES5
No. TypeScript adds additional syntax. Here is an image:
which one should be the prime one to use
TypeScript
what is the reason
Better IDE Tooling and ways to document code.
My opinions on why TypeScript : https://basarat.gitbooks.io/typescript/content/docs/why-typescript.html
This video demonstrates the tooling difference between JavaScript and TypeScript : https://www.youtube.com/watch?v=gmKXXI_ck7w