only2dhir / angular6-example

In this article we will be building an Angular 6 application step by step from scratch with sample example. We will be generating our Angular 6 Hero application using angular CLI and then modify it to have a user management project where there will be a login screen for an admin and post login he can perform CRUD operations such as create, read, update and delete user with the sample REST API exposed using HttpClientModule.
https://www.devglan.com/angular/angular-6-example
74 stars 98 forks source link

not able to perform curd operation #1

Open suriyaJaay opened 6 years ago

suriyaJaay commented 6 years ago

Hi,

Could you pls tell me how to solve below issue.

trying to add use but throws error in chrome console as follows

OPTIONS http://localhost:8080/user-portal/users 0 ()
ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: null, ok: false, …}

in netwroks

users | (failed) | xhr | zone.js:2969 | 0 B | 2.01 s
  |   |  

thank you

only2dhir commented 6 years ago

Hello There, Make sure the server is running and listening on port 8080 or else you can use fake objects in service.ts.

Thanks, Dhiraj

On Tue, Jun 19, 2018 at 4:15 PM suriya notifications@github.com wrote:

Hi,

Could you pls tell me how to solve below issue.

trying to add use but throws error in chrome console as follows

OPTIONS http://localhost:8080/user-portal/users 0 () ERROR HttpErrorResponse {headers: HttpHeaders, status: 0, statusText: "Unknown Error", url: null, ok: false, …}

in netwroks

users (failed) xhr zone.js:2969 0 B 2.01 s

thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/only2dhir/angular6-example/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AJoZaST73nvFNlOPM06O1EG1mybFpA0Pks5t-NY2gaJpZM4UtRQm .