This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,11 @@ __`app/index.html`:__
173
173
174
174
<html ng-app>
175
175
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.
180
181
181
182
* AngularJS script tag:
182
183
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ api/ng.directive:ngSrc ngSrc} directive. That directive prevents the
65
65
browser from treating the angular `{{ expression }}` markup literally, and initiating a request to
66
66
invalid url `http://localhost:8000/app/{{phone.imageUrl}}`, which it would have done if we had only
67
67
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.
69
69
70
70
71
71
## Test
You can’t perform that action at this time.
0 commit comments