fix: remove duplicate angularjs guide as their is already an angular guide (#26365)
This commit is contained in:
committed by
Christopher McCormack
parent
d006696c85
commit
f5f08191fb
@ -1,30 +0,0 @@
|
|||||||
---
|
|
||||||
title: AngularJS
|
|
||||||
localeTitle: AngularJS
|
|
||||||
---
|
|
||||||
## AngularJS
|
|
||||||
|
|
||||||
AngularJS (الإصدارات 1.x) هو إطار JavaScript مفتوح المصدر. AngularJS يمتد HTML لتطوير واجهة الأمامية الغنية والقوية. يقلل من الاستخدام المتكرر للشفرة HTML. يمكن تجنب هذا التكرار من خلال استخدام التوجيهات التي توفرها AngularJS التي توفرها الكثير من الوقت والجهد.
|
|
||||||
|
|
||||||
**التثبيت** :
|
|
||||||
|
|
||||||
الآلية:
|
|
||||||
|
|
||||||
\`\` \`قذيفة npm تثبيت الزاوي
|
|
||||||
|
|
||||||
`HTML:
|
|
||||||
`
|
|
||||||
|
|
||||||
أتش تي أم أل
|
|
||||||
|
|
||||||
`bower:
|
|
||||||
`
|
|
||||||
|
|
||||||
الصدف باور تثبيت زاوية
|
|
||||||
|
|
||||||
`HTML:
|
|
||||||
`
|
|
||||||
|
|
||||||
أتش تي أم أل
|
|
||||||
|
|
||||||
\`\` \`
|
|
@ -1,47 +0,0 @@
|
|||||||
---
|
|
||||||
title: AngularJS
|
|
||||||
localeTitle: AngularJS
|
|
||||||
---
|
|
||||||
## AngularJS
|
|
||||||

|
|
||||||
|
|
||||||
AngularJS(版本1.x)是一个开源的前端JavaScript框架。 AngularJS扩展了HTML以开发丰富而强大的前端。 它减少了HTML代码的重复使用。通过使用AngularJS提供的保存指令可以避免这种重复 很多时间和精力。
|
|
||||||
|
|
||||||
**安装** :
|
|
||||||
|
|
||||||
安装node.js
|
|
||||||
|
|
||||||
安装完毕检查node.js的版本,运行如下代码:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
node --version
|
|
||||||
```
|
|
||||||
|
|
||||||
通过Node.js的npm命令安装最新版本的npm/bower
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm install -g npm
|
|
||||||
npm install -g bower
|
|
||||||
```
|
|
||||||
通过npm安装:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm install angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="/node_modules/angular/angular.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
通过bower安装:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
bower install angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="/bower_components/angular/angular.js"></script>
|
|
||||||
```
|
|
||||||
|
|
@ -1,72 +0,0 @@
|
|||||||
---
|
|
||||||
title: AngularJS
|
|
||||||
---
|
|
||||||
## AngularJS
|
|
||||||
|
|
||||||
[AngularJS](https://angularjs.org/) (versions 1.x) is an open source front-end JavaScript framework. AngularJS extends HTML to develop rich and powerful front-ends.
|
|
||||||
It reduces the repetitive use of HTML code. This repetition can be avoided by using the directives provided by AngularJS which saves
|
|
||||||
much time and effort. It is cross platform and used to develop Single Page Web Application (SPWA). AngularJS implements the MVC pattern to separate the logic , presentation and data components. It also uses dependency injection to make use of server-side services in client side applications.
|
|
||||||
|
|
||||||
## AngularJS Expressions
|
|
||||||
- Expressions can be written inside double braces: `{{ expression }}`
|
|
||||||
- Expressions can also be written inside a directive: `ng-bind="expression"`
|
|
||||||
- AngularJS will resolve the expression, and return the result exactly where the expression is written
|
|
||||||
- Expressions are much like JavaScript expressions: They can contain literals, operators, and variables.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```js
|
|
||||||
{{ 5 + 5 }} or {{ firstName + " " + lastName }}
|
|
||||||
```
|
|
||||||
|
|
||||||
Minimal example for usage of AngularJS in an HTML page:
|
|
||||||
```html
|
|
||||||
<!doctype html>
|
|
||||||
<html ng-app>
|
|
||||||
<head>
|
|
||||||
<!-- include the AngularJS script -->
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<label>Your Name:</label>
|
|
||||||
<input type="text" ng-model="yourName" placeholder="Enter your full name here">
|
|
||||||
<hr>
|
|
||||||
<h1>Hello {{yourName}}!</h1>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
It is recommended to source the script from Google's CDN (Content Delivery Network) in your deployed, customer facing app whenever possible (better caching, decreased latency, increased parallelism). Please check the latest version on [AngularJS](https://angularjs.org/).
|
|
||||||
```html
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.5/angular.min.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
npm:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm install angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="/node_modules/angular/angular.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
bower:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
bower install angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="/bower_components/angular/angular.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
#### More Information
|
|
||||||
|
|
||||||
- [Angular JS App Tutorial](https://docs.angularjs.org/tutorial)
|
|
@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
title: AngularJS
|
|
||||||
localeTitle: AngularJS
|
|
||||||
---
|
|
||||||
## AngularJS
|
|
||||||

|
|
||||||
|
|
||||||
O AngularJS (versões 1.x) é uma estrutura JavaScript de front-end de software livre. O AngularJS estende o HTML para desenvolver front-ends ricos e poderosos. Reduz o uso repetitivo de código HTML. Esta repetição pode ser evitada usando as diretivas fornecidas pelo AngularJS que salva muito tempo e esforço.
|
|
||||||
|
|
||||||
**Instalar** :
|
|
||||||
|
|
||||||
npm:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm install angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="/node_modules/angular/angular.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
bower:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
bower install angular
|
|
||||||
```
|
|
@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
title: AngularJS
|
|
||||||
localeTitle: AngularJS
|
|
||||||
---
|
|
||||||
## AngularJS
|
|
||||||

|
|
||||||
|
|
||||||
AngularJS (версии 1.x) является JavaScript фреймворком с открытым исходным кодом. AngularJS расширяет HTML для разработки богатых и мощных интерфейсов. Это уменьшает повторяющееся использование HTML-кода. Этого повторения можно избежать, используя директивы, предоставленные AngularJS, которые сохраняют много времени и усилий.
|
|
||||||
|
|
||||||
**Установка** :
|
|
||||||
|
|
||||||
npm:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
npm install angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="/node_modules/angular/angular.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
bower:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
bower install angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
|
|
||||||
|
|
||||||
```html
|
|
||||||
<script src="/bower_components/angular/angular.js"></script>
|
|
||||||
```
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
title: AngularJS
|
|
||||||
localeTitle: AngularJS
|
|
||||||
---
|
|
||||||
## AngularJS
|
|
||||||

|
|
||||||
|
|
||||||
AngularJS (versiones 1.x) es un marco de JavaScript de front-end de código abierto. AngularJS extiende HTML para desarrollar front-ends ricos y poderosos. Reduce el uso repetitivo del código HTML. Esta repetición se puede evitar utilizando las directivas proporcionadas por AngularJS que ahorra mucho tiempo y esfuerzo.
|
|
||||||
|
|
||||||
**Instalar** :
|
|
||||||
|
|
||||||
npm:
|
|
||||||
|
|
||||||
shell npm instalar angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
```
|
|
||||||
|
|
||||||
html
|
|
||||||
```
|
|
||||||
bower:
|
|
||||||
```
|
|
||||||
|
|
||||||
cáscara instalación de la caja angular
|
|
||||||
```
|
|
||||||
HTML:
|
|
||||||
```
|
|
||||||
|
|
||||||
html
|
|
Reference in New Issue
Block a user