从1角移动到角2时需要prerequisites [英] prerequisites needed when moving from angular 1 to angular 2

查看:180
本文介绍了从1角移动到角2时需要prerequisites的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我使用角V-1.3 。我听说角2 是一种比不同角1 在使用和实施的条款。

Currently I'm using Angular V-1.3.I heard that Angular 2 is a way more different than Angular 1 in terms of usage and implementation.

范围,指令和其他功能的概念已被删除,并遵循程序的OO模型。

The concept of scope,directives and other features have been removed and follows a OO model of programming.

所以,当迁移至2角,我需要知道的打字稿/ OOP的概念。或者,在prerequisites需要什么?

So while migrating to Angular 2 do I need to know the concepts of typescript/OOP's. Or what are the prerequisites needed?

推荐答案

2角是角1.x的一个完全重新编写
这里是一个有趣的采取上。

Angular 2 is a complete re-write from Angular 1.x. Here is a funny take on that.

至于prerequisites

1。我需要知道打字稿?

这是很好学习打字原稿,如角2.0正被写入打字稿。但在同一时间,你可以写的应用程序code 在ES 5或香草ES 6不要紧为打字稿transpiles到ES。

2。我需要知道的OOP?

我看不出有任何理由不掌握OOP作为工作/职业/业余爱好程序员。

As to prerequisites
1. Do I need to know typescript?
it is nice to learn Typescript, as Angular 2.0 is being written in Typescript. But at the same time, you can write your application code in ES 5 or vanilla ES 6. It does not matter as typescript transpiles to ES.
2. Do I need to know OOP?
I don't see any reason why not to master OOP as a working / professional / hobby programmer.

如果您正在寻找角2.0一个完整的例子包括路由,组件,ES6等看看这个<一个href=\"https://auth0.com/blog/2015/05/14/creating-your-first-real-world-angular-2-app-from-authentication-to-calling-an-api-and-everything-in-between/?utm_content=buffer4f352&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer\"相对=nofollow>帖子。

If you are looking for a complete example with Angular 2.0 including routing, components, ES6 etc have a look at this post.

Angular.io 是对角2.0的官方网站。近日角2,0从alpha版本转移到开发商preVIEW。因此,它是开始探索的好时机角2.0

Angular.io is the official site for Angular 2.0. Recently Angular 2,0 moved to developer preview from alpha release. So it is a good time to start exploring Angular 2.0

这篇关于从1角移动到角2时需要prerequisites的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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