angular2和angular4有什么区别 [英] what are the differences between angular2 and angular4

查看:190
本文介绍了angular2和angular4有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请让我知道angular2和angular4之间的区别.我们知道angular1和angular2之间发生了巨大变化.再次对angular4重复一次.

can you please let me know the differences between angular2 and angular4. We know that there is a drastic change between angular1 and angular2. Is it repeated again for angular4.

推荐答案

在角度2和角度4之间没有断开的路径,例如角度1和角度2.它们只是在维护SEMVER(正式版本). Angular 2现在很稳定,因此最好使用Angle 2而不是Angle 4.

There is nothing path breaking between angular 2 and angular 4 like angular 1 and angular 2. They are just doing it to maintain SEMVER(Sementic Versioning). Angular 2 is stable now so it would be better to prefer angular 2 instead of angular 4.

Angular 2是对AngularJS 1.x的完全重写,其中包含许多新概念.但是,Angular 4是Angular 2的下一个版本.基本概念仍然相同,如果您已经学习了Angular 2,则已经准备好立即切换到Angular 4.

Angular 2 was a complete rewrite of AngularJS 1.x with many new concepts. Angular 4 however is the next version of Angular 2. The underlying concepts are still the same and if you have already learned Angular 2 you’re well prepared to switch to Angular 4 now.

之所以选择Angular 4而非Angular 3,是因为Angular Router软件包之前已经在版本3中. Angular团队希望避免混淆,因此决定跳过Angular的第3版,继续使用第4版.

The reason it’s Angular 4 and not Angular 3 is that the Angular Router package has already been in version 3 before. The Angular team would like to avoid confusion and decided to skip version 3 for Angular and continue with Version 4.

根据评论更新

Update from comments

  • 此外,在Angular 4中,动画功能是从@angular/animations而不是@angular/core
  • 导入的

    • Also, in Angular 4, animation functions are imported from @angular/animations instead of @angular/core
    • 有关更多详细信息,我已在此处发布了这篇文章

      For more detail i have published this article read here

      这篇关于angular2和angular4有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆