Skip to content

Commit 3ff5ad0

Browse files
committed
Readme update
1 parent fff0f1e commit 3ff5ad0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ Working demo https://plnkr.co/edit/OgvZ09iYO64VoXHLRGQa?p=preview
1515
- [Installation](#installation)
1616
- [Examples](#examples)
1717
- [Usage](#usage)
18-
- [angular-quickstart](#quickstart)
19-
- [angular-seed](#seed)
2018

2119
## <a name="get-started"></a> Get Started
2220

@@ -47,6 +45,8 @@ import { NgxHttpBatcherModule,
4745

4846
import { AppComponent } from "./app.component";
4947

48+
// Exported function so that HttpBatchConfigurationCollection can be used as in DI.
49+
// Having this as an exported function enabled AOT complication as well :-)
5050
export function httpBatchConfigurationFactory() {
5151
return new HttpBatchConfigurationCollection([
5252
new HttpBatchConfiguration({
@@ -55,6 +55,9 @@ export function httpBatchConfigurationFactory() {
5555
})]);
5656
};
5757

58+
// Note the providers block where the Http class is being replaced by the HttpBatcher class.
59+
// This ensures that if you inject the Http service into something you actually get the
60+
// HttpBatcher class.
5861
@NgModule({
5962
declarations: [
6063
AppComponent

0 commit comments

Comments
 (0)