Front-end - I have never learned angular. If I start learning now, I will learn angular2 directly or I need to learn angular1.X first.
仅有的幸福
仅有的幸福 2017-05-15 17:07:26
0
4
921

I am a front-end rookie. Currently I am not proficient in many frameworks. I have used Jquery, vue.js and MUI (I am not proficient in them).
Because I saw many companies asking to be familiar with angularJs, I planned to learn angularJs, but angular2 was officially released. Is it still necessary to learn the old version 1.X first? Does angular2 need to learn ES6 and typescript first? Will it be difficult to learn? Please give me some advice

仅有的幸福
仅有的幸福

reply all(4)
仅有的幸福

First question, is it still necessary to learn the old version 1.X first?
I think it will definitely help me to learn, but isn’t it necessary? I suggest you learn angular1 during this time.
The official version of angular2 has just been released not long ago. There is not that much information available on the Internet about angular2. If you go directly to learn the content of angular2, it will be difficult to fill in the pitfalls. So before that, learn angular1 and understand some of the core concepts of angular. For example, module dependency injection, two-way binding, instructions, and services can greatly improve your capabilities. Once you have a preliminary understanding of angular1, you will probably find some better angular2 tutorials on the Internet, and it may be better to learn angular2 again. In addition, there are currently very few ng2 projects. Those who are required to be familiar with angular on the Internet refer to angular1.
Second question, there is definitely a learning curve for angular2, and it should not be low.
First of all, from the current point of view, using Typescript to write angular2 is the right choice. After all, documents and online materials are mainly typescript, so it is best to master typescript before starting angular development. This part of the learning task is actually It’s not small either.
In addition, the concept of angular2 is not just a little bit. From my own point of view, ng2 has added a lot of black technology compared to ng1. It sounds overwhelming to shake a tree. At present, I only learn based on the official Documentation syntax is used to write demos, which will not be used in production. . .

Finally, although it was said above that learning angular2 is difficult, I don’t think you should give up trying to learn about it just because others say it is difficult. I always think that only by getting in touch with difficult things can I have a chance to improve. . Hope this helps~

洪涛

Disclaimer: My research is very shallow. A rookie. I have only been playing with Angular1 for a year, and Angular 2 for less than half a year. Give a strong answer. .

  1. TS does not only support Angular2, and Angular2 does not have to be written in TS. If you use TS to write Angular1 and ES5 to write Angular2, it won't break down. . . =. =

  2. I haven’t spent any time to study TS in detail. Language is just a tool, as long as you know how to use it ((error...but:

  3. TS itself is a superset of ES6. ES6 itself is JavaScript. With some new methods and new writing methods, TS will eventually be compiled into JS and run. . Personally, I feel that as long as the basic skills of JavaScript are good enough, learning TS is not as difficult as imagined. TS features, such as strong typing, can be used if needed. If not, just write them as ES6. There is no big problem.

  4. If you have learned Vue, it should be helpful to learn Angular2. The ideas are somewhat similar, but the writing method and ecosystem are changed.

  5. There are already a lot of reference materials. Although there are not many in Chinese, there is an official website. There are many in English. For books, there are at least "ng-book2", "Switching to Angular2", and "Mastering Angular2 Components". For videos, there are a lot of Youtube and major "online education" platforms, such as Udemy, Lynda, and Egghead.io. It’s also a pile, enough for you to see.

  6. It is not recommended to start looking at Angular1 nowin order to understand two-way binding, directives, and dependency injection. Personally, I think Angular2 is easier to understand and much simpler. The writing method of Angular2 is slightly different from Angular1. For example, there is in Angular1. It is easy to be confused when you first learn it. . At least in this regard, Angular2 has simplified it a lot. provider, service, factory, constant, decoratorvalue

  7. There are already many projects and examples online. There are projects both big and small. . There are a lot of them on github, and there is also a website called BuiltWithAngular2. . There are currently only some very simple examples on my github, which I have been writing recently, and I hope to complete more as soon as possible.

  8. Speaking of company needs. My personal suggestion is that if you want to find a job quickly within three months, then learn 1. . As long as it's not for this, learn 2. . When writing your own projects and considering the future, Angular2 will be a better choice.

  9. I don’t understand many aspects well enough, I hope God can correct me.

某草草

Then let’s start from 2

洪涛

If you have not studied angular1, it is recommended not to study it. It is better to learn vue in depth. I am also taking a wait-and-see approach to learning angular2. The official version has only been released recently. There is no doubt that the relevant learning documents are not complete enough and the learning difficulty is high. Moreover, TypeScript has been introduced. Although the difference is not too big, it is an added introduction for front-end novices. threshold.

So it is recommended to learn Vue.js or React in depth (jsx makes beginners a little uncomfortable), and adopt a wait-and-see attitude towards the angular series.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template