简体   繁体   English

我是否需要了解 Typescript 才能学习 Angular 2?

[英]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.

相关问题 我需要学习如何构建类似于LucidChart的接口 - What do I need to learn to build interfaces similar to LucidChart 对于一个简单的三阶段网络表单,我需要学习什么? - What do I need to learn for a simple 3 stage webform? 我需要学习 React 才能在 React Native 中编写代码吗? - Do I need to learn React to code in React Native? 为什么在 typescript 中导入文件时需要添加 .js 扩展名,而在 Angular 导入中不需要? - Why do I need to add the .js extension when importing files in typescript but not in Angular imports? 我需要知道 express 才能使用 Javascript 吗? - Do I need to know express to use Javascript? 我需要读取用TypeScript(An Angular Module)编写的文件,并以编程方式将代码添加到原始文件中。 关于我该怎么做的任何想法? - I need to read a file written in TypeScript (An Angular Module) and programatically add code to the original file. Any ideas on how can I do it? 我怎么知道我需要哪个现代零件? - How do I know which modernizr part I need? 我需要在 arrays 的数组中找到一个特定的值。 Angular、Typescript - I need to find a specific value in an array of arrays. Angular, Typescript 我想制作浏览器插件/扩展,我需要学习哪种编程语言? - I want to make browser add-ons/extentions, which programming language do i need to learn? 我需要了解HTML和CSS才能使用jQuery Mobile吗? - Do I need to know HTML and CSS to use jQuery Mobile?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM