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 Dec 4, 2017. It is now read-only.
Copy file name to clipboardExpand all lines: public/docs/ts/latest/guide/server-communication.jade
+24-23
Original file line number
Diff line number
Diff line change
@@ -110,33 +110,33 @@ block http-providers
110
110
The newcomers are the `HttpModule` and the `JsonpModule` from the !{_Angular_http_library}. For more information about imports and related terminology, see the [MDN reference](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import) on the `import` statement.
111
111
112
112
To add these modules to the application, pass them to the `imports` array in the root `@NgModule`.
113
-
.l-sub-section
114
-
:marked
115
-
The `HttpModule` is necessary for making HTTP calls.
116
-
Though the `JsonpModule` isn't necessary for plain HTTP,
117
-
there is a JSONP demo later in this page.
118
-
Loading its module now saves time.
119
-
.l-main-section#http-client
113
+
.l-sub-section
114
+
:marked
115
+
The `HttpModule` is necessary for making HTTP calls.
116
+
Though the `JsonpModule` isn't necessary for plain HTTP,
117
+
there is a JSONP demo later in this page.
118
+
Loading its module now saves time.
119
+
.l-main-section#http-client
120
120
:marked
121
121
## The Tour of Heroes HTTP client demo
122
122
123
123
The first demo is a mini-version of the [tutorial](../tutorial)'s "Tour of Heroes" (ToH) application.
124
124
This version gets some heroes from the server, displays them in a list, lets the user add new heroes, and saves them to the server.
125
-
The app uses the !{_Angular_Http} client to communicate via `XMLHttpRequest (XHR)`.
125
+
The app uses the !{_Angular_Http} client to communicate via **XMLHttpRequest (XHR)**.
126
126
127
127
It works like this:
128
128
figure.image-display
129
129
img(src='/resources/images/devguide/server-communication/http-toh.gif'alt="ToH mini app"width="250")
130
130
:marked
131
131
This demo has a single component, the `HeroListComponent`. Here's its template:
0 commit comments