Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1b34c6d

Browse files
brettcannonmhevery
authored andcommitted
doc(misc) Mention how attribute names map to directive names.
1 parent a62c7b8 commit 1b34c6d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/content/tutorial/step_00.ngdoc

+5-4
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,11 @@ __`app/index.html`:__
173173

174174
<html ng-app>
175175

176-
The `ng-app` attribute is represents an Angular directive used to flag an element which Angular
177-
should consider to be the root element of our application. This gives application developers the
178-
freedom to tell Angular if the entire html page or only a portion of it should be treated as the
179-
Angular application.
176+
The `ng-app` attribute is represents an Angular directive (named `ngApp`; Angular uses
177+
`name-with-dashes` for attribute names and `camelCase` for the corresponding directive name)
178+
used to flag an element which Angular should consider to be the root element of our application.
179+
This gives application developers the freedom to tell Angular if the entire html page or only a
180+
portion of it should be treated as the Angular application.
180181

181182
* AngularJS script tag:
182183

docs/content/tutorial/step_06.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ api/ng.directive:ngSrc ngSrc} directive. That directive prevents the
6565
browser from treating the angular `{{ expression }}` markup literally, and initiating a request to
6666
invalid url `http://localhost:8000/app/{{phone.imageUrl}}`, which it would have done if we had only
6767
specified an attribute binding in a regular `src` attribute (`<img class="diagram" src="{{phone.imageUrl}}">`).
68-
Using `ngSrc` (`ng-src`) prevents the browser from making an http request to an invalid location.
68+
Using the `ngSrc` directive prevents the browser from making an http request to an invalid location.
6969

7070

7171
## Test

0 commit comments

Comments
 (0)