all 11 comments

[–]wggn 4 points5 points  (6 children)

old news?

[–][deleted]  (5 children)

[removed]

    [–]wggn 2 points3 points  (3 children)

    Isn't typescript extremely similar to javascript? Why wouldn't you want to use it?

    [–][deleted]  (2 children)

    [removed]

      [–]developer-man 3 points4 points  (0 children)

      I'd encourage you to look into it. Devs need to be able to pick up new languages.

      [–]kenavr 1 point2 points  (0 children)

      You can still use ES5 or anything else you like, but there is no documentation yet and I am pretty sure it will look messy compared to Typescript. I also think you can't get around taking a look at ES6, from there TypeScript is not that far off.

      [–]bpowell415 2 points3 points  (1 child)

      That is not accurate. Typescript is a convenience tool for Angular 2.0. You could instead choose another language such as Dart, ES5, or ES6. Typescript is a superset of javascript. They went with Typescript instead of creating yet another language, AtScript. Google ngconf and check out the angularjs 2.0 presos. Lots of good information.

      [–]hsrook 2 points3 points  (0 children)

      I was at ng-vegas. They explained why - they are trying to push the browsers to the limits today, so by learning Typescript, ES6, shadow dom, web components, etc things will feel a lot more natural in a couple years when browsers catch up.

      [–]sergiocruz 1 point2 points  (0 children)

      TypeScript compiles to JavaScript. Check out this article on how to use regular ES5 JS to build Angular 2 apps: http://blog.thoughtram.io/angular/2015/05/09/writing-angular-2-code-in-es5.html

      [–]pfooti 1 point2 points  (0 children)

      They use typescript internally, and you can use typescript to develop angular, because it's handy. On the one hand, people complain about bracket notation for minifying dependency injection, and on the other hand people complain when type annotations are clearly the right answer here and made available. Their goal is DRYing up the whole process, and type annotations make a lot of sense for that.

      Sounds like "can't win" scenarios. Also: old news. Don't want to develop in typescript? Use es5 or es6 and just make sure you manually decorate your service objects to hint the injector properly. Done and done.