📜  Angular 7简介

📅  最后修改于: 2020-12-16 04:54:17             🧑  作者: Mango

什么是Angular 7?

Angular 7是一个JavaScript (实际上是基于TypeScript的开源全栈Web应用程序)框架,使您能够创建反应性单页应用程序(SPA)。 Angular 7完全基于组件。它由几个组件组成,与父组件和子组件一起形成树结构。超过2+的Angular版本通常仅称为Angular。 Angular 1.0的第一个版本称为AngularJS。

“ Angular是构建AngularJS的同一团队对AngularJS的完全重写。”

什么是单页应用程序(SPA)?

单页应用程序是一个Web应用程序或网站,它为用户提供了与桌面应用程序类似的非常流畅,反应迅速的体验。它在单个页面上以及用户单击其中的任何页面时都包含菜单,按钮和块。它动态地重写当前页面,而不是从服务器加载整个新页面。这就是其反应迅速的原因。

AngularJS和Angular之间的区别

AngularJS Angular
AngularJS is common and popular name of the first version of Angular1.0. Angular is common and popular name of the Angular’s version beyond 2+
AngularJS is a JavaScript-based open-source front-end web framework. Angular is a TypeScript-based open-source full-stack web application framework.
AngularJS uses the concept of scope or controller. Instead of scope and controller, Angular uses hierarchy of components as its primary architectural characteristic.
AngularJS has a simple syntax and used on HTML pages along with the source location. Angular uses the different expression syntax. It uses “[ ]” for property binding, and “( )” for event binding.
AngularJS is a simple JavaScript file which is used with HTML pages and doesn’t support the features of a server-side programming language. Angular uses of Microsoft’s TypeScript language, which provides Class-based Object Oriented Programming, Static Typing, Generics etc. which are the features of a server-side programming language.
AngularJS doesn’t support dynamic loading of the page. Angular supports dynamic loading of the page.

Angular 7 vs Angular6 vs Angular2 vs Angular1

Angular1最初于2010年发布。它是第一个Angular版本。它在Web应用程序开发中掀起了一场革命。它是在HTML代码中使用的浏览器端JavaScript。它通常被称为AngularJS。

Angular2是对Angular1的完全重写。它最初于2016年发布。Angular2和Angular1之间没有什么共同点,除了核心开发人员的团队。 Angular2,Angular 6和Angular 7彼此非常相似。 Angular 7是最新版本。它包含Angular2和Angular6的广泛功能。这些版本称为Angular。