Skip to content

initial commit#1

Open
Swati0077 wants to merge 2 commits intomasterfrom
development
Open

initial commit#1
Swati0077 wants to merge 2 commits intomasterfrom
development

Conversation

@Swati0077
Copy link
Owner

Angular PR

}

getData(): void{
this.http.get('http://localhost:5000/user').subscribe((data: Users[]) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use base urls from env files.

}

deleteData(id: string): void{
this.http.delete('http://localhost:5000/user/delete/' + id).subscribe(() => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make separate api client and override functions from that.

mname: string;
lname: string;
Uemail: string;
Uphonenumber: string;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

follow camel case for naming convention

if (paramMap.has('id')){
this.userId = paramMap.get('id');
this.updateUserData = this.service.findUserData(this.userId);
console.log(this.updateUserData.firstname);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unnecessary logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants