Browse Source

Update 'README.md'

nhu313 6 years ago
parent
commit
758ebea041
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      README.md

+ 1
- 1
README.md View File

@@ -6,7 +6,7 @@ You can generate your own provider with the command
6 6
 ionic g provider [providername]
7 7
 ```
8 8
 
9
-This will create a `providers/[providername]/[providername].ts` file. In that file you will make the call to your server. You can read [Accessing Rest With Angular](https://medium.com/codingthesmartway-com-blog/angular-4-3-httpclient-accessing-rest-web-services-with-angular-2305b8fd654b) blog post to learn more.
9
+This will create a `providers/[providername]/[providername].ts` file. In that file you will make the call to your server. You can read [Accessing Rest With Angular](https://medium.com/codingthesmartway-com-blog/angular-4-3-httpclient-accessing-rest-web-services-with-angular-2305b8fd654b) blog post to learn more. In this case, I added a provider called `api`.
10 10
 
11 11
 In `src/app/app.module.ts`, I added `import { HttpClientModule } from '@angular/common/http';` to the import statement up top.
12 12
 Then in the `imports` section, I added `HttpClientModule`.