[英]Do I need to know Typescript to learn Angular 2?
Some time ago I decided to learn Angular.前段时间我决定学习Angular。 I didn't know JavaScript any well, so I spent several months to learn it (I am not an expert or anything, but I am able to create some simple applications now).我不太了解 JavaScript,所以我花了几个月的时间来学习它(我不是专家或任何东西,但我现在能够创建一些简单的应用程序)。 Now that I thought I am ready to Angular (the 2nd version of which became available), I opened the official website ( https://angular.io/ ) and was stunned to see that their docs suggest that I need to know Typescript as well to write some code now.现在我以为我已经准备好使用 Angular(第二个版本可用),我打开了官方网站( https://angular.io/ )并惊讶地看到他们的文档表明我需要了解 Typescript 作为好现在写一些代码。 JS version of the docs is not yet ready and suggests you to go to the Typescript docs instead. JS 版本的文档尚未准备就绪,建议您转而使用 Typescript 文档。
Is Angular 2 available for the Javascript only? Angular 2 是否仅适用于 Javascript? If so, are there any official docs on it?如果是这样,是否有任何官方文档?
No. TypeScript is not required to use Angular 2. It's not even the default.不。使用 Angular 2 不需要 TypeScript。它甚至不是默认设置。 That said, TypeScript would benefit you to learn if your job was exclusively calling for front-end development specifically with Angular 2.0.也就是说,如果您的工作专门要求专门使用 Angular 2.0 进行前端开发,TypeScript 将使您受益。
Even the official 5 Min Quickstart article starts off with plain ol' JavaScript.甚至官方的5 分钟快速入门文章也是从简单的 JavaScript 开始的。
All of their code samples and tutorials will eventually be available in JavaScript.他们所有的代码示例和教程最终都将在 JavaScript 中可用。 Their wording simply says it's "not yet available in JavaScript".他们的措辞只是说它“在 JavaScript 中尚不可用”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.