Skip to content

Commit 12fcb6f

Browse files
committed
HTTP POST example added
1 parent b08e135 commit 12fcb6f

18 files changed

+93
-304
lines changed

app/fetch/fetch-examples.component.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/fetch/fetch-examples.module.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

app/fetch/fetch-get/article.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/fetch/fetch-get/fetch-get.component.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/fetch/fetch-get/fetch-get.component.ts

Lines changed: 0 additions & 102 deletions
This file was deleted.

app/fetch/fetch-post/article.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

app/fetch/fetch-post/fetch-post.component.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

app/fetch/overview.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/http/http-examples.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { NativeScriptHttpModule } from "nativescript-angular/http";
77
import { HttpExamplesComponent } from "./http-examples.component";
88

99
import { HttpGetComponent } from "./http-get/http-get.component";
10-
import { HttpPostComponent } from "./http-post/http-post";
10+
import { HttpPostComponent } from "./http-post/http-post.component";
1111
import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module";
1212

1313
export const routerConfig = [

app/http/http-get/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { NativeScriptHttpModule } from "nativescript-angular/http";
99
]
1010
```
1111

12-
Creating a service file to keep our HTTP logic separated from our component file (which does not need to know how we fetch our data)
12+
Creating a service file to keep our HTTP logic separated from our component file (which does not need to know details on how we fetch our data)
1313
<snippet id="http-get-service"/>
1414

15-
Finally, we can provide our service in our component. Note that the services should be explicitly declared ```providers: [MyHttpService]```
15+
Finally, we can provide our service in our component. Note that the services should be explicitly declared in `providers`
1616
and then should be provided as an argument in our component's constructor
1717
<snippet id="http-get-component"/>

0 commit comments

Comments
 (0)