Angular2 - http://localhost:4200/ being appended with api call why?
问题 just start learning angular2 followed the heroes tutorial. I am making a create request, the URL is perfectly fine, the parameters are fine. But I am still confused why http://localhost:4200/ is being appended with my API call, and because of that the URL gets totally changed, and the calls failed.please shed some light over this issue. I googled a lot but could find the reason. My Create Method create(user: object): Promise<any> { return this.http .post('localhost/usmanProject/api/web/v1