采用了棱角分明2浏览器由于以上才能打字稿? [英] Using Angular 2 with older browsers thanks to TypeScript?

查看:219
本文介绍了采用了棱角分明2浏览器由于以上才能打字稿?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于角2团队使用打字稿为它的建设,这将是一个可行的假设,他们可以编译版的角2,将工作在旧的浏览器?

Since the Angular 2 team is using Typescript for it's build, would it be a feasible assumption that they could compile a version of Angular 2 that would work on older browsers?

推荐答案

编辑2:

看样子角团队已经决定支持一些非常绿浏览器。每布拉德·格林(的角度队):什么浏览器的版本将角2支持?有一些提示的新构建小部件https://github.com/angular/angular

It appears the Angular team has decided to support some non evergreen browsers. Per Brad Green (of the Angular team): What browsers versions will Angular 2 support? There's a new build widget with some hints on https://github.com/angular/angular

目前,自述显示IE9以上。

Currently, the Readme shows IE9 and up.

2角将支持现代浏览器:

Angular 2 will only support modern browsers:

现代浏览器是指一组被称为常青树或浏览器
  总是自动更新到最新版本。建设
  这些浏览器让我们放下许多黑客和解决办法,使
  AngularJS更难使用和发展比它需要。

Modern browsers means the set of browsers known as ‘evergreen’ or always automatically updated to the latest version. Building for these browsers let us drop many hacks and workarounds that make AngularJS harder to use and develop on than it needs to be.

该组目前包括浏览器,火狐,歌剧,Safari和
  IE10 / 11。在移动设备上,我们会支持一些接近名单
  Android版Chrome,iOS版6+的Windows Phone 8 +和Firefox移动。我们
  寻找到支持旧版本的Andr​​oid,但陪审团
  还在外面。

The set currently includes Chrome, FireFox, Opera, Safari, and IE10/11. On mobile, we’ll support something close to the list of Chrome on Android, iOS 6+, Windows Phone 8+ and Firefox mobile. We’re looking into supporting older versions of Android, but the jury is still out.

<一个href=\"http://angularjs.blogspot.com/2014/03/angular-20.html\">http://angularjs.blogspot.com/2014/03/angular-20.html

编辑::要解决您的评论,没有打字稿不是角2缺乏对非现代浏览器(也不打算提供任何神奇的支持)支持的限制因素。打字稿可以transpile到ES3,因此,如果你的目标浏览器支持ES3,你可以使用打字稿。相反,角2将一无所获WRT使用打字稿支持旧版浏览器。

To address your comment, no Typescript is not the limiting factor for Angular 2's lack of support for non-modern browsers (nor going to provide any magical support). Typescript can transpile to ES3, so if your target browser supports ES3, you can use Typescript. Conversely, Angular 2 will gain nothing wrt supporting legacy browsers by using TypeScript.

这篇关于采用了棱角分明2浏览器由于以上才能打字稿?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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