角度2的最佳模块装载器? [英] Best module loader for angular 2?

查看:58
本文介绍了角度2的最佳模块装载器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过了两个用于JavaScript&的模块加载器Angular JS 1 AMD,requireJS,Browserify,JSPM,Webpack,SystemJS,CommonJS.哪个是与angular 2一起使用的最佳模块装载器?

I have went through couple of module loaders for JavaScript & Angular JS 1 AMD, requireJS, Browserify, JSPM, Webpack, SystemJS, CommonJS. Which one is the best module loader to use with angular 2 ?

推荐答案

就像angularJs一样,要为angular2使用哪个加载器也没关系.无论在angularJs中对您来说效果如何,在angular2中都可以正常工作.考虑到速度和灵活性,相同的规则适用于所有装载机.

Just like in angularJs, it doesn't really matter which loader you want to use for angular2. Whatever worked fine for you in angularJs, will just work as fine in angular2. The same rules apply to all loaders considering speed and flexibility.

不必因为System2在其快速入门中就使用SystemJ而倾向于使用SystemJ.

There is no need to be inclined to use SystemJs, just because angular2 uses it as an example in their quickstart.

这篇关于角度2的最佳模块装载器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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