Skip to content

Commit 716b5fd

Browse files
committed
docs(*): fixing various docs
1 parent 8b8fddd commit 716b5fd

10 files changed

Lines changed: 34 additions & 32 deletions

docs/content/guide/dev_guide.bootstrap.manual_bootstrap.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ explicitly.
1212

1313
<pre>
1414
<!doctype html>
15-
<html xmlns:ng="http://angularjs.org">
15+
<html>
1616
<head>
1717
<script src="http://code.angularjs.org/angular.js"></script>
1818
<script>

docs/content/guide/dev_guide.bootstrap.ngdoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ and manage the whole page. You do this as follows:
2929

3030
<html xmlns:ng="http://angularjs.org">
3131

32-
You need to declare the angular namespace declaration in the following cases:
33-
34-
* For all types of browser if you are using XHTML.
35-
* For Internet Explorer older than version 9 (because older versions of IE do not render namespace
36-
properly for either HTML or XHTML).
32+
You need to add the angular namespace declaration if you use `ng:something` style of declaring
33+
angular directives and you write your templates as XHTML. Or when you are targeting Internet
34+
Explorer older than version 9 (because older versions of IE do not render namespace
35+
properly for either HTML or XHTML). For more info please read {@link ie Internet Explorer
36+
Compatibility} doc.
3737

3838

3939
## Creating Your Own Namespaces

docs/content/guide/dev_guide.di.using_di_controllers.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ controller from the HTML template, as follows:
2121

2222
<pre>
2323
<!doctype html>
24-
<html xmlns:ng="http://angularjs.org" ng-controller="MyController" ng-app>
24+
<html ng-controller="MyController" ng-app>
2525
<script src="http://code.angularjs.org/angular.min.js"></script>
2626
<body>
2727
...

docs/content/guide/dev_guide.expressions.ngdoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ objects with additional behavior. By prefixing its additions with $ we are reser
236236
so that angular developers and developers who use angular can develop in harmony without collisions.
237237

238238

239+
## Related Topics
240+
241+
* {@link dev_guide.templates.filters Understanding Angular Filters}
242+
239243
## Related API
240244

241245
* {@link api/angular.module.ng.$compile Angular Compiler API}

docs/content/guide/dev_guide.i18n.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ http://docs.angularjs.org/#!/api/angular.module.ng.$filter.number number} and {@
2222
http://docs.angularjs.org/#!/api/angular.module.ng.$filter.currency currency} filters.
2323

2424
Additionally, Angular supports localizable pluralization support provided by the {@link
25-
api/angular.module.ng.$compileProvider.directive.ng-pluralize ng-pluralize widget}.
25+
api/angular.module.ng.$compileProvider.directive.ng-pluralize ng-pluralize directive}.
2626

2727
All localizable Angular components depend on locale-specific rule sets managed by the {@link
2828
api/angular.module.ng.$locale $locale service}.

docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Do not use controllers for:
6565
manipulation—the presentation logic of an application—is well known for being hard to test.
6666
Putting any presentation logic into controllers significantly affects testability of the business
6767
logic. Angular offers {@link dev_guide.templates.databinding} for automatic DOM manipulation. If
68-
you have to perform your own manual DOM manipulation, encapsulate the presentation logic in and
68+
you have to perform your own manual DOM manipulation, encapsulate the presentation logic in
6969
{@link api/angular.module.ng.$compileProvider.directive directives}.
70-
- Input formatting — Use {@link dev_guide.forms angular form widgets} instead.
70+
- Input formatting — Use {@link dev_guide.forms angular form controls} instead.
7171
- Output filtering — Use {@link dev_guide.templates.filters angular filters} instead.
7272
- Run stateless or stateful code shared across controllers — Use {@link dev_guide.services angular
7373
services} instead.

docs/content/guide/dev_guide.overview.ngdoc

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,10 @@ easier a web developer's life can if they're using angular:
7979
Try out the Live Preview above, and then let's walk through the example and describe what's going
8080
on.
8181

82-
In the `<html>` tag, we add an attribute to let the browser know about the angular namespace.
83-
This ensures angular runs nicely in all major browsers. We also specify that it is an angular
84-
application with the `ng-app` directive. The `ng-app' will cause the angular to {@link
85-
dev_guide.bootstrap auto initialize} your application.
82+
In the `<html>` tag we specify that this is an angular application with the `ng-app` directive.
83+
The `ng-app' will cause the angular to {@link dev_guide.bootstrap auto initialize} your application.
8684

87-
<html ng-ng-app>
85+
<html ng-app>
8886

8987
We load the angular using the `<script>` tag:
9088

@@ -111,12 +109,12 @@ And finally, the mysterious `{{ double curly braces }}`:
111109

112110
Total: {{qty * cost | currency}}
113111

114-
This notation, `{{ _expression_ }}`, is a bit of built-in angular {@link http://localhost:8000/build/docs/api/angular.module.ng.$interpolate
115-
markup}, a shortcut for displaying data to the user. The expression within curly braces gets
116-
transformed by the angular compiler into an angular directive ({@link api/angular.module.ng.$compileProvider.directive.ng-bind
117-
ng-bind}). The expression itself can be a combination of both an expression and a {@link
118-
dev_guide.templates.filters filter}: `{{ expression | filter }}`. Angular provides filters for
119-
formatting display data.
112+
This notation, `{{ _expression_ }}`, is a bit of built-in angular binding markup, a shortcut for
113+
displaying data to the user. The expression within curly braces is monitored and its evaluated value
114+
is updated into the view by angular's template compiler. Alternatively, one could use angular's
115+
{@link api/angular.module.ng.$compileProvider.directive.ng-bind ng-bind}) directive. The expression
116+
itself can be a combination of both an expression and a {@link dev_guide.templates.filters filter}:
117+
`{{ expression | filter }}`. Angular provides filters for formatting display data.
120118

121119
In the example above, the expression in double-curly braces directs angular to, "Bind the data we
122120
got from the input widgets to the display, multiply them together, and format the resulting number

docs/content/guide/dev_guide.templates.ngdoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ the dynamic view DOM.
1010

1111
These are the types of angular elements and element attributes you can use in a template:
1212

13-
* {@link api/angular.module.ng.$compileProvider.directive Directive} — An attribute that augments an existing DOM
14-
element.
13+
* {@link api/angular.module.ng.$compileProvider.directive Directive} — An attribute or element that
14+
augments an existing DOM element or represents a reusable DOM component - a widget.
1515
* {@link api/angular.module.ng.$interpolate Markup} — The double
1616
curly brace notation `{{ }}` to bind expressions to elements is built-in angular markup.
1717
* {@link dev_guide.templates.filters Filter} — Formats your data for display to the user.
@@ -21,7 +21,8 @@ Note: In addition to declaring the elements above in templates, you can also ac
2121
in JavaScript code.
2222

2323
The following code snippet shows a simple angular template made up of standard HTML tags along with
24-
angular {@link api/angular.module.ng.$compileProvider.directive directives} and {@link dev_guide.expressions expressions}:
24+
angular {@link api/angular.module.ng.$compileProvider.directive directives} and curly-brace bindings
25+
with {@link dev_guide.expressions expressions}:
2526

2627
<pre>
2728
<html ng-app>

docs/content/misc/downloading.ngdoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ development.
1616
production.
1717

1818
To point your code to an angular script on the angular server, use the following template. This
19-
example points to (non-minified) version 0.9.12:
19+
example points to (non-minified) version 0.10.6:
2020

2121
<pre>
2222
<!doctype html>
23-
<html xmlns:ng="http://angularjs.org" ng-app>
23+
<html ng-app>
2424
<head>
2525
<title>My Angular App</title>
26-
<script src="http://code.angularjs.org/angular-0.9.12.js"></script>
26+
<script src="http://code.angularjs.org/angular-0.10.6.js"></script>
2727
</head>
2828
<body>
2929
</body>

docs/content/misc/started.ngdoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,13 @@ A great way for you to get started with AngularJS is to create the tradtional
2121

2222
The resulting web page should look something like the following:
2323

24-
<img class="center" src="img/helloworld.png" border="1" />
24+
<img class="center" src="img/helloworld.png" border="1">
2525

2626
Now let's take a closer look at that code, and see what is going on behind
2727
the scenes.
2828

29-
The first line of interest defines the `ng` namespace, which makes
30-
AngularJS work across all browsers (especially important for IE). The
31-
`ng-app` tags tells angular to process the entire HTML when it is loaded:
29+
The `ng-app` tags tells angular to process the entire HTML page and bootstrap the app when the page
30+
is loaded:
3231

3332
<pre>
3433
<html ng-app>
@@ -37,7 +36,7 @@ AngularJS work across all browsers (especially important for IE). The
3736
The next line downloads the angular script:
3837

3938
<pre>
40-
<script type="text/javascript" src="http://code.angularjs.org/angular-?.?.?.min.js"></script>
39+
<script src="http://code.angularjs.org/angular-?.?.?.min.js"></script>
4140
</pre>
4241

4342
(For details on what happens when angular processes an HTML page,

0 commit comments

Comments
 (0)