Angular 10 + Spring Boot CRUD Full Stack App - 19 - Create Angular Update Employee Component & Form

Angular 10 + Spring Boot CRUD Full Stack App - 19 - Create Angular Update Employee Component & Form

Java Guides

3 года назад

34,952 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@vasudevvarma1092
@vasudevvarma1092 - 01.12.2023 21:18

Hi Great video, currently I am trying to do this project everything worked fine till here, but I was unable to retrieve id (getting undefined value)from the data base but all other data like firstname and emailid are retrieving I tried so many things but unable to retrieve id . can some one help me with this

Ответить
@davidwidner8258
@davidwidner8258 - 01.12.2023 00:16

I was having an issue getting the routing to work, as the page stayed on the employee-list. I had to remove the '/:id' from the paths and it work fined.

Ответить
@user-wu8uq7mq2w
@user-wu8uq7mq2w - 10.11.2023 13:50

Hi sir...I am facing error in view employee ....employee details are not showing.. please help me

Ответить
@surbhipaliwal3576
@surbhipaliwal3576 - 12.07.2022 09:46

Mera router navigate nhi kr rh update Employee ko

Ответить
@ryanwoodward1749
@ryanwoodward1749 - 07.05.2022 08:52

Great Video just wanted to post an issue I had and it's solution. I was rather clumsy and omitted the colon befor id in the path line in the app routing module

my code read:
{path: 'update-employee/id.......}

where it needed to be:
{path: 'update-employee/:id.....}

small but vexing!

Love the series Ramesh you are awesome!

Ответить
@WaclawShuminski
@WaclawShuminski - 18.11.2021 18:12

In this video author forgot to show update-employee.component.ts. But it will be shown in the next video.
Just temporary COPY / PASTE from your create-employee.component.ts following:

import { Router } from '@angular/router';
import { Employee } from '../employee';
import { EmployeeService } from '../employee.service';

employee: Employee = new Employee();
constructor(private employeeService: EmployeeService, private router: Router) { }

savEmployee() {
this.employeeService.createEmployee(this.employee).subscribe( data => {
console.log(data);
this.goToEmployeeList();
},
error => console.log(error));
}

goToEmployeeList() {
this.router.navigate(['employees']);
}

onSubmit() {
console.log(this.employee);
this.saveEmployee();
}

In the next video you will edit it but you can use code listed above just to run without errors.

Ответить
@rolexrealestategroup4161
@rolexrealestategroup4161 - 27.08.2021 19:32

Hello sir you have created a too good application from this I have learned too much. @javaGuides please add one more video for update employee when I click on button then there are no not click that button .I am unable to go on next page for update employee.

Ответить
@houssemjmal2859
@houssemjmal2859 - 13.08.2021 20:20

thank you great video !!!

Ответить
@joshibabita20jan
@joshibabita20jan - 18.06.2021 12:33

How to solve this error TS2339: Property 'employee' does not exist on type 'UpdateEmployeeComponent'.

Ответить
@afiamujahid
@afiamujahid - 28.05.2021 23:22

Till this video I was able to do everything.but now I am unable to create update button.

Ответить
@AbdulHalim-lu5ux
@AbdulHalim-lu5ux - 29.04.2021 15:16

Error: src/app/update-employee/update-employee.component.html:4:25 - error TS2339: Property 'onSubmit' does not exist on type 'UpdateEmployeeComponent'.

4 <form (ngSubmit) = "onSubmit()" >

how to solve this?

Ответить
@AbdulHalim-lu5ux
@AbdulHalim-lu5ux - 25.04.2021 04:48

how to solve this Error: src/app/update-employee/update-employee.component.html:3:25 - error TS2339: Property 'onSubmit' does not exist on type 'UpdateEmployeeComponent'.

Ответить
@yosrabenabdelkader5892
@yosrabenabdelkader5892 - 21.12.2020 06:02

thank you great video

Ответить
@baranis6500
@baranis6500 - 30.11.2020 20:16

Hi Sir how to create layout page

Ответить
@amanuellebassi7294
@amanuellebassi7294 - 18.11.2020 06:04

Great Explanation

Ответить
@ascar66
@ascar66 - 15.10.2020 03:56

Thank you sir, I think you forgot to show us what method and fields should we add to our update-employee component. Hope you'll show it in the next video.

Ответить