Комментарии:
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
Ответить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.
ОтветитьHi sir...I am facing error in view employee ....employee details are not showing.. please help me
ОтветитьMera router navigate nhi kr rh update Employee ko
Ответить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!
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.
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.
Ответитьthank you great video !!!
ОтветитьHow to solve this error TS2339: Property 'employee' does not exist on type 'UpdateEmployeeComponent'.
ОтветитьTill this video I was able to do everything.but now I am unable to create update button.
Ответить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?
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'.
Ответитьthank you great video
ОтветитьHi Sir how to create layout page
ОтветитьGreat Explanation
Ответить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.
Ответить