Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d28d65

Browse files
emilesilvisIgorMinar
authored andcommittedMar 16, 2014
docs(guide/tutorial): make capitalization of "Angular" consistent
- step_05.ngdoc - step_06.ngdoc - step_07.ngdoc - step_08.ngdoc Closes #6686 Closes #6687 Closes #6688 Closes #6689
1 parent fbb125a commit 8d28d65

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed
 

‎docs/content/tutorial/step_05.ngdoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You should now see a list of 20 phones.
2020
The most important changes are listed below. You can see the full diff on [GitHub](https://github.com/angular/angular-phonecat/compare/step-4...step-5):
2121

2222
## Data
23-
23+
a
2424
The `app/phones/phones.json` file in your project is a dataset that contains a larger list of phones
2525
stored in the JSON format.
2626

@@ -44,7 +44,7 @@ Following is a sample of the file:
4444

4545
We'll use Angular's {@link ng.$http $http} service in our controller to make an HTTP
4646
request to your web server to fetch the data in the `app/phones/phones.json` file. `$http` is just
47-
one of several built-in {@link guide/dev_guide.services angular services} that handle common operations
47+
one of several built-in {@link guide/dev_guide.services Angular services} that handle common operations
4848
in web apps. Angular injects these services for you where you need them.
4949

5050
Services are managed by Angular's {@link guide/di DI subsystem}. Dependency injection
@@ -74,10 +74,10 @@ tutorial.)
7474

7575
The `$http` service returns a {@link ng.$q promise object} with a `success`
7676
method. We call this method to handle the asynchronous response and assign the phone data to the
77-
scope controlled by this controller, as a model called `phones`. Notice that angular detected the
77+
scope controlled by this controller, as a model called `phones`. Notice that Angular detected the
7878
json response and parsed it for us!
7979

80-
To use a service in angular, you simply declare the names of the dependencies you need as arguments
80+
To use a service in Angular, you simply declare the names of the dependencies you need as arguments
8181
to the controller's constructor function, as follows:
8282

8383
phonecatApp.controller('PhoneListCtrl', function ($scope, $http) {...}
@@ -96,7 +96,7 @@ dependencies.
9696
### `$` Prefix Naming Convention
9797

9898
You can create your own services, and in fact we will do exactly that in step 11. As a naming
99-
convention, angular's built-in services, Scope methods and a few other Angular APIs have a `$`
99+
convention, Angular's built-in services, Scope methods and a few other Angular APIs have a `$`
100100
prefix in front of the name.
101101

102102
The `$` prefix is there to namespace Angular-provided services.
@@ -167,7 +167,7 @@ __`test/unit/controllersSpec.js`:__
167167
Because we started using dependency injection and our controller has dependencies, constructing the
168168
controller in our tests is a bit more complicated. We could use the `new` operator and provide the
169169
constructor with some kind of fake `$http` implementation. However, the recommended (and easier) way
170-
is to create a controller in the test environment in the same way that angular does it in the
170+
is to create a controller in the test environment in the same way that Angular does it in the
171171
production code behind the scenes, as follows:
172172

173173
```js
@@ -269,7 +269,7 @@ to the first 5 in the list. Use the following code in the `$http` callback:
269269

270270
# Summary
271271

272-
Now that you have learned how easy it is to use angular services (thanks to Angular's dependency
272+
Now that you have learned how easy it is to use Angular services (thanks to Angular's dependency
273273
injection), go to {@link step_06 step 6}, where you will add some
274274
thumbnail images of phones and some links.
275275

‎docs/content/tutorial/step_06.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ the element attribute.
6363

6464
We also added phone images next to each record using an image tag with the {@link
6565
ng.directive:ngSrc ngSrc} directive. That directive prevents the
66-
browser from treating the angular `{{ expression }}` markup literally, and initiating a request to
66+
browser from treating the Angular `{{ expression }}` markup literally, and initiating a request to
6767
invalid url `http://localhost:8000/app/{{phone.imageUrl}}`, which it would have done if we had only
6868
specified an attribute binding in a regular `src` attribute (`<img src="{{phone.imageUrl}}">`).
6969
Using the `ngSrc` directive prevents the browser from making an http request to an invalid location.

‎docs/content/tutorial/step_07.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Our application routes are defined as follows:
114114
view, Angular will use the `phone-list.html` template and the `PhoneListCtrl` controller.
115115

116116
* The phone details view will be shown when the URL hash fragment matches '/phone/:phoneId', where
117-
`:phoneId` is a variable part of the URL. To construct the phone details view, angular will use the
117+
`:phoneId` is a variable part of the URL. To construct the phone details view, Angular will use the
118118
`phone-detail.html` template and the `PhoneDetailCtrl` controller.
119119

120120
We reused the `PhoneListCtrl` controller that we constructed in previous steps and we added a new,

‎docs/content/tutorial/step_08.ngdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ route by the `$route` service.
7979
## Template
8080

8181
The TBD placeholder line has been replaced with lists and bindings that comprise the phone details.
82-
Note where we use the angular `{{expression}}` markup and `ngRepeat` to project phone data from
82+
Note where we use the Angular `{{expression}}` markup and `ngRepeat` to project phone data from
8383
our model into the view.
8484

8585

0 commit comments

Comments
 (0)
This repository has been archived.