freeCodeCamp/guide/chinese/angular/index.md

60 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Angular
localeTitle: 角
---
## 角
AngularJS版本1.x是一个基于JavaScript的开源框架。它是跨平台的用于开发单页Web应用程序SPWA。 AngularJS实现MVC模式以分离逻辑表示和数据组件。它还使用依赖注入来在客户端应用程序中使用服务器端服务。
Angular版本2.x及更高版本是一个基于Typescript的开源框架用于开发前端Web应用程序。 Angular具有以下功能如泛型静态类型以及一些ES6功能。
## 版本历史
谷歌于2010年10月20日发布了AngularJS的初始版本。 AngularJS的稳定版本于2017年12月18日发布版本为1.6.8。 Angular 2.0发布于2014年9月22日在ng-Europe会议上发布。 Angular 2.0的一个特性是动态加载。
经过一些修改后Angular 4.0于2016年12月发布。 Angular 4向后兼容Angular 2.0。 HttpClient库是Angular 4.0的一个特性。 Angular 5发布于2017年11月1日。支持Progressive Web应用程序是Angular 5.0的改进之一。 Angular 6发布于2018年5月。最新的稳定版本是[6.1.9](https://blog.angular.io/angular-v6-1-now-available-typescript-2-9-scroll-positioning-and-more-9f1c03007bb6) Angular 7发布于2018年10月。新的稳定版本是7.0.1。
**安装**
我们可以通过引用可用的源或下载框架来添加Angular。
**链接到来源**
AngularJS我们可以通过引用Google的内容交付网络来添加AngularJSAngular 1.x版本
```html
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
```
下载/安装我们可以使用npmBower或composer下载框架
**Angular 1.x**
NPM
\`\`\`壳 npm安装角度
```
Then add a `<script>` to your `index.html`:
```
HTML
```
bower
```
贝壳 凉亭安装角度
```
Then add a `<script>` to your `index.html`:
```
HTML
\`\`\`
有关文档的更多信息,请参阅[AngularJS](https://docs.angularjs.org/api)的官方站点
您可以通过以下从官方文档中的步骤安装**角2.x**和其他版本的[角](https://angular.io/guide/quickstart)
_注意请参阅Angular文档以获取更新的信息。_