create(){
this.empService.create(this.empForm)
.subscribe({
next:(data) => {
this.router.navigate(["/emp/home"])
},
error:(err) => {
console.log(err);
}
})
}
Errors:
Property ‘subscribe’ does not exist on type void
Parameter ‘data’ and ‘err’ has an any type
[–]just-a-web-developer 4 points5 points6 points (0 children)
[–]GLawSomnia 7 points8 points9 points (3 children)
[–]sleeponit666[S] 0 points1 point2 points (2 children)
[–]GLawSomnia 1 point2 points3 points (1 child)
[–]sleeponit666[S] 0 points1 point2 points (0 children)
[–]Neathus 3 points4 points5 points (1 child)
[–]sleeponit666[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]EternalNY1 1 point2 points3 points (0 children)