Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angularjs New Entry Not reflacting in table after inserting New record in CRUD angular app

saveEmployee() {
   this.employservice.createEmployee(this.employee).subscribe(data => {
     console.log(data);
     this.gotoemployeelist();
   })
   console.error();
 }

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

 onSubmit() {
   this.saveEmployee();
 }
 
PREVIOUS NEXT
Tagged: #angularjs #New #Entry #Not #reflacting #table #inserting #New #record #CRUD #angular #app
ADD COMMENT
Topic
Name
8+1 =