Angular JS 2 npm和ng(Angular-Cli)之间的区别(内置工具) [英] Angular JS 2 Difference between npm and ng(Angular-Cli) (Built tool)

查看:312
本文介绍了Angular JS 2 npm和ng(Angular-Cli)之间的区别(内置工具)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在angularjs 2中,NPM和NG(anglular-cli)之间的主要区别是什么.如果通过NPM可以构建我们的应用程序并且它可以运行,那么NG Built(angular-cli)的需求是什么.

In angularjs 2 what is main difference between NPM and NG (anglular-cli). If By NPM if we can built our application and it will work then what is the need of NG Built (angular-cli).

npm start vs(ng服务或ng构建)

npm start vs ( ng serve or ng built)

推荐答案

NPM基本上是一个程序包管理器,它充当依赖项提供程序.如果要构建一个大软件包需要很多小软件包,那么NPM是向我们提供软件包的一个热点. Angular-CLI是其中一个软件包. 就NG而言,它是Angular的核心模块.每当启动应用程序时,都会默认加载NG模块.该模块本身包含AngularJS应用程序运行所需的基本组件.

NPM is basically a package manager which acts as a dependency provider. If there are many small packages, required to build a large one, NPM is the one hotspot which will provide us with the packages. Angular-CLI is one of those packages. As far as NG is concerned, it is the core module of Angular. Whenever, an application is started,the NG module is loaded by deafult. The module itself contains the essential components for an AngularJS application to function.

希望有帮助!

这篇关于Angular JS 2 npm和ng(Angular-Cli)之间的区别(内置工具)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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