简体   繁体   English

是 Angular 平台还是框架?

[英]IS Angular Platform or Framework?

I am newbie to Angular I am going through various documents available online.我是 Angular 的新手,我正在浏览在线提供的各种文档。
Angular.io Angular.io
Range.io Range.io
Angular.io sites says that Angular.io 网站说


Angular is a platform that makes it easy to build applications with the web. Angular 是一个平台,可以轻松地使用 Web 构建应用程序。 Angular combines declarative templates, dependency injection, end to end tooling, and integrated best practices to solve development challenges. Angular 结合了声明式模板、依赖注入、端到端工具和集成的最佳实践来解决开发挑战。 Angular empowers developers to build applications that live on the web, mobile, or the desktop Angular 使开发人员能够构建在 Web、移动设备或桌面上运行的应用程序

Range.io says that Range.io 说

There are many front-end JavaScript frameworks to choose from today, each with its own set of trade-offs.今天有许多前端 JavaScript 框架可供选择,每个框架都有自己的权衡。 Many people were happy with the functionality that Angular 1.x afforded them.许多人对 Angular 1.x 提供的功能感到满意。 Angular 2 improved on that functionality and made it faster, more scalable and more modern. Angular 2 对该功能进行了改进,使其更快、更具可扩展性和更现代。 Organizations that found value in Angular 1.x will find more value in Angular 2.在 Angular 1.x 中发现价值的组织将在 Angular 2 中发现更多价值。

wiki defintion维基定义

Angular is a TypeScript-based open-source front-end web application platform led by the Angular Team at Google and by a community of individuals and corporations. Angular 是一个基于 TypeScript 的开源前端 Web 应用程序平台,由 Google 的 Angular 团队以及个人和公司社区领导。 Angular is a complete rewrite from the same team that built AngularJS Angular 是由构建 AngularJS 的同一团队完全重写的

In some places on web Angular is defined as a javascript framework and some places a platform which one is correct it's a platfrom or a framework I reffered this thread but did not clear my doubt completely could someone shed light on it?在网络上的某些地方,Angular 被定义为一个javascript framework而在某些地方,一个platform是正确的,它是一个平台或框架,我引用了这个线程,但没有完全清除我的疑问,有人可以解释一下吗?

It's both a platform and a framework.它既是一个平台,也是一个框架。

When you use it for web application, you may call it a framework.当您将其用于 Web 应用程序时,您可以将其称为框架。

But when you use it for web, iPhone, android or any mobile, you may call it a platform.但是,当您将其用于网络、iPhone、Android 或任何移动设备时,您可以将其称为平台。 Because you know what is platform.因为你知道什么是平台。 Mobile applications are accelerating both hardware and software for its application system.移动应用正在加速其应用系统的硬件和软件。 A web application using angular is also considered as a platform.使用 angular 的 Web 应用程序也被视为一个平台。 Because browser specific commands you can use when you develop mobile app.因为您在开发移动应用程序时可以使用浏览器特定的命令。 Suppose, you're developing an android app, then you need to test it in desktop browser.假设您正在开发一个 android 应用程序,那么您需要在桌面浏览器中对其进行测试。 You need to accelerate it with hardware command to launch.您需要使用硬件命令对其进行加速才能启动。 And it's a platform.它是一个平台。

So, when you develop mobile application using any available resources like NativeScript, Cordova, Ionic, etc. and you use angular and in that term angular is a platform.因此,当您使用任何可用资源(如 NativeScript、Cordova、Ionic 等)开发移动应用程序并使用 angular 时,在该术语中,angular 是一个平台。

So, the platform can be defined as a framework which can be used across multiple systems.因此,该平台可以定义为一个可以跨多个系统使用的框架。 And angular can be used in any system and it can be termed as a platform. angular 可以在任何系统中使用,它可以被称为一个平台。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM