.subscribe(() => {
console.log('Data Added Sucessfully!')
this.ngZone.run(() => this.router.navigateByUrl('/books-list'))
}, (err) => {
console.log(err);
});
In the first line .subscribe work marked as lined on it (strikethrough) and due to this data cannot be saved