You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/content/tutorial/step_05.ngdoc
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ You should now see a list of 20 phones.
20
20
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):
21
21
22
22
## Data
23
-
23
+
a
24
24
The `app/phones/phones.json` file in your project is a dataset that contains a larger list of phones
25
25
stored in the JSON format.
26
26
@@ -44,7 +44,7 @@ Following is a sample of the file:
44
44
45
45
We'll use Angular's {@link ng.$http $http} service in our controller to make an HTTP
46
46
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
48
48
in web apps. Angular injects these services for you where you need them.
49
49
50
50
Services are managed by Angular's {@link guide/di DI subsystem}. Dependency injection
@@ -74,10 +74,10 @@ tutorial.)
74
74
75
75
The `$http` service returns a {@link ng.$q promise object} with a `success`
76
76
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
78
78
json response and parsed it for us!
79
79
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
81
81
to the controller's constructor function, as follows:
82
82
83
83
phonecatApp.controller('PhoneListCtrl', function ($scope, $http) {...}
@@ -96,7 +96,7 @@ dependencies.
96
96
### `$` Prefix Naming Convention
97
97
98
98
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 `$`
100
100
prefix in front of the name.
101
101
102
102
The `$` prefix is there to namespace Angular-provided services.
0 commit comments