Angular-4 with Spring boot Rest CRUD operations - #4 Angular4 Service Class

preview_player
Показать описание
In this Tutorial we are going to be building a full stack CRUD application using Spring boot rest in the back and and Angular 4 in the front End.
Рекомендации по теме
Комментарии
Автор

sir i am beginner and i learnt lot of things from your video ....thanxxx sir

Bhaiyajikijigyasa
Автор

for those of you who are having problems with map use this :
return this._http.get(this.baseUrl + '/users', Response) => response.json()));
you need to use pipe before map with this import : import { map } from 'rxjs/operators';
for those of you who have a problem with observable use this :
import { Observable } from 'rxjs';
as for those who are still having an error with catch, i just deleted it

erised-_-
Автор

your playlist was very helpful, thank you So much sir

gavinpochovski
Автор

Hi sir, good video but i dont understand your options line
And it doesnt work on angular 7

samo
Автор

For those who are in trouble, the libraries he is using are deprecated, you will have to look for replacement libraries on Google.

canaldetalesmateus
Автор

You're tutorial is very good!! But one thing i have to understand if i have to go online with this application i have to deploy both angular and spring on different server with different dns or i will have to deploy both but angular is running with dns and spring is running on local host. I have less understanding of deployment, Pls help

pankajvyas
Автор

sir i have an error "Cannot read property 'getUsers' of undefined" ....how to solve this..

Bhaiyajikijigyasa
Автор

Thanks for the tuto, but is it a mistake or you don't want to provide the angular front-end in the github ? :-)

youcefbey
Автор

Just a question regarding your angular version used. I tried this using angular cli 6 but had issues regarding the .map function. What was the version you used for this project?

whooli
Автор

I am getting this error - [ts] Property 'map' does not exist on type 'Observable<Response>'.

return this._http.get(this.baseUrl+'/users', this.options).map((response:Response)=>response.json())
.catch(this.errorHandler);

toddsmith
Автор

If anyone is getting the Map error while doing this it is because you're on a newer version of Angular/rxjs. I did the following and was able to resolve the errors. Someone please correct me if I'm wrong.

import {map, catchError} from 'rxjs/operators';

return this._http.get(this.baseUrl+'/users', this.options).pipe(map((response:Response)=>response.json())).pipe(


I added ".pipe" before map and before the catch error.

carlosdelatorre
Автор

Hi Samba. thanks a lot for the tutorial. however, i got this problem

basically, i only can fetch the dummy data from backend, but can't do the create, update, delete function as property.
the origin stuff you set up on backend should not be any problem. Is it the problem that I am using angular 6 I need to use httpclientmodule. I am not sure the problem is this.

lingsike
Автор

hai first of all thanks!, i have a small doubt on the createUser() method. Actualy it is a post request is any use with .map() function in it.please give a proper answer. thanks

anandusidharthan
Автор

Sir, it doesn't taking the http module.how can I fix that

ganeshaadhineni
Автор

Observable not import, produce me error

michaeleduardogarciaabello
Автор

can someone please send me the user.service.ts updated for new angular version

sindakhenine
welcome to shbcf.ru