Ionic 1 AngularJs 1 vs Ionic 2 AngularJs 2?

时间:2021-04-01 23:00:27

I want to move from IOS to Ionic. But i don't have any idea that which version is best for starting, because i did't know nothing about AngularJs 1 and its update version AngularJs 2 features and differences. And also i did't find any related help from internet with difference of both versions. Can anyone please tell me pros and cons or difference between them. Or which one is best. And if Ionic 2 is best so from where i can watch video tutorials of this. Thanks

我想从IOS转到Ionic。但我不知道哪个版本最适合启动,因为我对AngularJs 1及其更新版本AngularJs 2的功能和差异一无所知。而且我也没有从互联网找到任何相关的帮助,两个版本的差异。任何人都可以告诉我它们之间的利弊或区别。或者哪一个是最好的。如果Ionic 2最好,那么我可以观看这个视频教程。谢谢

4 个解决方案

#1


4  

If I remember correctly the podcast episode of Adventures in Angular, John Papa recommended starting new projects with Angular 2.

如果我没记错了Angular Adventures的播客节目,John Papa建议用Angular 2开始新的项目。

Since Ionic is built on top of Angular 2 it will be lagging a bit behind. If you want to go into production now with an Ionic 2 app I suppose it's not recommended using it. Since Angular 2 is in RC we might expect that they will release in the near future, and with that Ionic 2 will be some time behind that. Therefore, I recommend using Ionic 2 if you don't plan to go into production in the nearest future.

由于Ionic建立在Angular 2之上,它将落后一点。如果您现在想要使用Ionic 2应用程序投入生产,我想不建议使用它。由于Angular 2在RC中,我们可能会期望它们将在不久的将来释放,而Ionic 2将会落后于它。因此,如果您不打算在不久的将来投入生产,我建议使用Ionic 2。

When it comes to the differences, this article has a nice write up on the differences between Angular 1 and 2.

说到差异,本文对Angular 1和2之间的差异进行了很好的描述。

Edit: It's been a while since I wrote this post and I have followed the development of ionic 2. I would now recommend using ionic 2.

编辑:我写这篇文章已经有一段时间了,我已经跟踪了离子2的开发。我现在建议使用离子2。

#2


2  

Right now is quite unfortunate time to choose between Ionic/Angular v1 and v2. If you can afford that I would advise you to wait 1 year and the just pick Ionic 2. Most of the problems you will face today when dealing with Ionic/Angular 2 will be already solved here in * 12 months from now.

现在是非常不幸的时间在Ionic / Angular v1和v2之间进行选择。如果你能负担得起,我会建议你等一年,然后选择Ionic 2.当你处理Ionic / Angular 2时,你今天面临的大部分问题都将在12个月后的*中得到解决。

Currently I would say it does not matter that much if you pick Ionic 1 or Ionic 2. In the first case you will move fast now, but waste time later trying to upgrade your app from ionic 1 to ionic 2. If you choose Ionic 2 now, you will waste similar amount of time just trying to make it work and adopt newer versions of Angular 2.

目前我会说如果你选择Ionic 1或Ionic 2并不重要。在第一种情况下你现在会快速移动,但是后来尝试将你的app从离子1升级到离子2浪费时间。如果选择Ionic 2现在,你将浪费相似的时间,只是试图让它工作并采用更新版本的Angular 2。

#3


1  

if You beginner you can start ionic-1 and angular-1,because lots of resource available like angularJS essential , Inter mediator and advance video tutorial in youtube and many other training provider.

如果你是初学者,你可以启动ionic-1和angular-1,因为很多资源可用,例如angularJS必备,inter mediator和youtube中的高级视频教程以及许多其他培训提供商。

if you want to include oops concept and other important script like typescript,move on to ionic2.

如果你想包括oops概念和其他重要的脚本,如打字稿,请转到ionic2。

#4


1  

If you are developing a mobile app, the question is ionic vs ionic 2 vs alternative frameworks. A lot of work has gone to making ionic 2 fast, and unless you already have a lot of apps in ionic there is no point learning it now.

如果您正在开发移动应用程序,问题是离子对离子2与替代框架。很多工作已经开始使离子2快速,除非你已经有很多离子应用程序,现在没有必要学习它。

Regarding Angular 2, the benefit of Ionic is that you don't have to learn it to get started. You can create real apps using just Ionic, and when you do need Angular (for http for example) then there are plenty of examples around.

关于Angular 2,Ionic的好处是你不必学习它来开始。你可以使用Ionic创建真正的应用程序,当你需要Angular时(例如http),那里有很多例子。

You can find videos on most of the pay learning sites, but to really learn it take an existing app such as https://github.com/driftyco/ionic-conference-app, which includes enough Angular 2 (Javascript and Typescript flavours) to see how a real app can be put together.

您可以在大多数付费学习网站上找到视频,但要真正了解它需要现有的应用程序,如https://github.com/driftyco/ionic-conference-app,其中包含足够的Angular 2(Javascript和Typescript风格)看看真正的应用程序如何组合在一起。

You can also play with the Ionic components with https://github.com/driftyco/ionic-preview-app.

您还可以使用https://github.com/driftyco/ionic-preview-app与Ionic组件一起玩。

The only reason for going Ionic 1 these days would be an edge case supporting an older version of Android, but if you need to go to a version earlier than 4.4 you will also find solutions that Ionic 2 can use.

这些天去Ionic 1的唯一原因是支持旧版Android的边缘情况,但如果你需要去4.4之前的版本,你也会找到Ionic 2可以使用的解决方案。

================= UPDATE Jan 2017 ================

================= 2017年1月更新================

There is a great starter project which has a number of app features built in, such as app settings, api connection, registration and login, welcome tutorial which can be found here https://github.com/driftyco/ionic-starter-super

有一个伟大的入门项目,内置了许多应用程序功能,如应用程序设置,api连接,注册和登录,欢迎教程,可以在这里找到https://github.com/driftyco/ionic-starter-super

#1


4  

If I remember correctly the podcast episode of Adventures in Angular, John Papa recommended starting new projects with Angular 2.

如果我没记错了Angular Adventures的播客节目,John Papa建议用Angular 2开始新的项目。

Since Ionic is built on top of Angular 2 it will be lagging a bit behind. If you want to go into production now with an Ionic 2 app I suppose it's not recommended using it. Since Angular 2 is in RC we might expect that they will release in the near future, and with that Ionic 2 will be some time behind that. Therefore, I recommend using Ionic 2 if you don't plan to go into production in the nearest future.

由于Ionic建立在Angular 2之上,它将落后一点。如果您现在想要使用Ionic 2应用程序投入生产,我想不建议使用它。由于Angular 2在RC中,我们可能会期望它们将在不久的将来释放,而Ionic 2将会落后于它。因此,如果您不打算在不久的将来投入生产,我建议使用Ionic 2。

When it comes to the differences, this article has a nice write up on the differences between Angular 1 and 2.

说到差异,本文对Angular 1和2之间的差异进行了很好的描述。

Edit: It's been a while since I wrote this post and I have followed the development of ionic 2. I would now recommend using ionic 2.

编辑:我写这篇文章已经有一段时间了,我已经跟踪了离子2的开发。我现在建议使用离子2。

#2


2  

Right now is quite unfortunate time to choose between Ionic/Angular v1 and v2. If you can afford that I would advise you to wait 1 year and the just pick Ionic 2. Most of the problems you will face today when dealing with Ionic/Angular 2 will be already solved here in * 12 months from now.

现在是非常不幸的时间在Ionic / Angular v1和v2之间进行选择。如果你能负担得起,我会建议你等一年,然后选择Ionic 2.当你处理Ionic / Angular 2时,你今天面临的大部分问题都将在12个月后的*中得到解决。

Currently I would say it does not matter that much if you pick Ionic 1 or Ionic 2. In the first case you will move fast now, but waste time later trying to upgrade your app from ionic 1 to ionic 2. If you choose Ionic 2 now, you will waste similar amount of time just trying to make it work and adopt newer versions of Angular 2.

目前我会说如果你选择Ionic 1或Ionic 2并不重要。在第一种情况下你现在会快速移动,但是后来尝试将你的app从离子1升级到离子2浪费时间。如果选择Ionic 2现在,你将浪费相似的时间,只是试图让它工作并采用更新版本的Angular 2。

#3


1  

if You beginner you can start ionic-1 and angular-1,because lots of resource available like angularJS essential , Inter mediator and advance video tutorial in youtube and many other training provider.

如果你是初学者,你可以启动ionic-1和angular-1,因为很多资源可用,例如angularJS必备,inter mediator和youtube中的高级视频教程以及许多其他培训提供商。

if you want to include oops concept and other important script like typescript,move on to ionic2.

如果你想包括oops概念和其他重要的脚本,如打字稿,请转到ionic2。

#4


1  

If you are developing a mobile app, the question is ionic vs ionic 2 vs alternative frameworks. A lot of work has gone to making ionic 2 fast, and unless you already have a lot of apps in ionic there is no point learning it now.

如果您正在开发移动应用程序,问题是离子对离子2与替代框架。很多工作已经开始使离子2快速,除非你已经有很多离子应用程序,现在没有必要学习它。

Regarding Angular 2, the benefit of Ionic is that you don't have to learn it to get started. You can create real apps using just Ionic, and when you do need Angular (for http for example) then there are plenty of examples around.

关于Angular 2,Ionic的好处是你不必学习它来开始。你可以使用Ionic创建真正的应用程序,当你需要Angular时(例如http),那里有很多例子。

You can find videos on most of the pay learning sites, but to really learn it take an existing app such as https://github.com/driftyco/ionic-conference-app, which includes enough Angular 2 (Javascript and Typescript flavours) to see how a real app can be put together.

您可以在大多数付费学习网站上找到视频,但要真正了解它需要现有的应用程序,如https://github.com/driftyco/ionic-conference-app,其中包含足够的Angular 2(Javascript和Typescript风格)看看真正的应用程序如何组合在一起。

You can also play with the Ionic components with https://github.com/driftyco/ionic-preview-app.

您还可以使用https://github.com/driftyco/ionic-preview-app与Ionic组件一起玩。

The only reason for going Ionic 1 these days would be an edge case supporting an older version of Android, but if you need to go to a version earlier than 4.4 you will also find solutions that Ionic 2 can use.

这些天去Ionic 1的唯一原因是支持旧版Android的边缘情况,但如果你需要去4.4之前的版本,你也会找到Ionic 2可以使用的解决方案。

================= UPDATE Jan 2017 ================

================= 2017年1月更新================

There is a great starter project which has a number of app features built in, such as app settings, api connection, registration and login, welcome tutorial which can be found here https://github.com/driftyco/ionic-starter-super

有一个伟大的入门项目,内置了许多应用程序功能,如应用程序设置,api连接,注册和登录,欢迎教程,可以在这里找到https://github.com/driftyco/ionic-starter-super