没有JavaScript的基础,我可以学习Angular2吗?

时间:2021-11-11 20:12:46

Can I learn and understand Angular2 without understanding JavaScript?

没有JavaScript基础我能学习和理解Angular2吗?

翻译来源:https://www.quora.com/Can-I-learn-and-understand-Angular2-without-understanding-JavaScript

本文地址:http://blog.csdn.net/sushengmiyan/article/details/52582491

本文作者:苏生米沿

来自Andru Vallance的回答:

No. Using Angular2 will require using Javascript (or one of the supersets).
不可以,使用Angular2将会需求使用Javascript或者一个任何它的超集。
Theoretically you may get by without a solid understanding of the language as a whole, or of features of it you don’t come across in Angular2 documentation and examples.
理论上来讲,你或许可以没有整体的对语言或者它的特性有一个了解也过得去,你不能通篇的理解Angular2文档和示例。
However, such an approach would be foolhardy; askin to writing a book in an unknown language while denying yourself to any language learning tools other than a single book written in that language.
然而,这样做事鲁莽的行为,被要求用一个你不知道的语言写一本书,并拒绝学习使用这个语言相关的其他语言学习工具。


来自Aniketh Mallabadi的回答:

You can’t understand Angular2, you should at least know Typescript instead of Javascript but even for Typescript you need some basic JS stuff.. Suggest you to start with JS which is fundamental for web development. You have really good resources online, if you spend one week that’s more than enough to learn JS.
你不能彻底的理解angular2,你不知道javascript也至少应该知道Typescript,但是对于Typescript来说,你也需要知道点基础的JS知识。建议你从JS开始,它是web开发的基础。在线资源很多,你花费一周的时候学习JS足够了。

By learning JS you can understand many more frameworks rather than angular alone.
通过学习JS你可以理解框架而非仅仅是angular.

Checkout Udemy classes JavaScript: Understanding the Weird Parts - Udemy just 11 hours class which makes you master in JS then understanding Angular 2 would be easier. For Typescript tutorial check Quick start · TypeScript .
去Udemy课程中找Javascript课程,11个课程就能让你掌握JS,然后你会发现学习Angular2很简单了。

来自Vani Ananthuni的回答:


Nope! You need to know Javascript/Typescript.
不!你必须要知道javascript/typescript才可以学习abgularjs2;
Typescript is used for Angular 2(Dart , Es5 or Es6 also can be used) And typescript is superset of JavaScript. Once you know JavaScript and understand OOPs, you can learn typescript easily.You also need to know scope of variables etc. If not typescript, at least JS will help you in the beginning. Although, there are some serious issues with using JS in Angular2.

Typescript是被angularjs2采用的是JS的超集。你知道了JS并且理解了面向对象编程,你学习起来就会很容易。你需要知道变量作用域等,如果不学习typescript至少也知道JS,尽管这样对在Angular2中使用JS还是有点问题。


总结:学习Angular却不懂JS,那我真的很佩服你们呀。
亲们。angular2已经正式发布了,我们还犹豫啥呢,抓紧行动咯。