问题描述
我是 angular2 的新手,我从未使用过 angular1.
I am new to angular2 and I have never used angular1.
我一直在尝试本教程 https://angular.io/guide/quickstart 和我想知道所有推荐的依赖项是否真的有必要,因为我的项目大小在npm install"之后变大(超过 100Mb).
I have been trying this tutorial https://angular.io/guide/quickstart andi wonder if all the recommended dependencies are really necessary because my project size gets big after 'npm install' (more than 100Mb).
推荐答案
在快速入门期间,您不一定会使用所有 @angular 依赖项,但是如果您继续他们的教程并且随着您的应用程序变得越来越复杂,您肯定会使用它们.
You won't necessarily use all of the @angular dependencies during the Quickstart, but if you continue on with their tutorial and as your app gets more complex, you will definitely utilize them.
其他包是必需的.它们由打字稿编译器、Observable 库和更多 Angular 2 功能组成.这里是其中一些信息的快速阅读.
The other packages are necessary. They consist of typescript compilers, libraries for Observables, and more Angular 2 features. Here is a quick read for info on some of these.
如果你使用 angular-cli
,调用 ng serve
也会运行一系列依赖包的自动化测试.
If you're using angular-cli
, calling ng serve
will also run a series of automated tests that depend on packages.
这篇关于angular2 quickstart 推荐的所有依赖项真的有必要吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!